Comments (1)
This worked for me:
clearInputs = (e: React.MouseEvent) => {
var inputElement = (document.querySelector('#csv') as HTMLInputElement);
inputElement.value = '';
}
Also defining inputId="csv" inside the component
from react-csv-reader.
Related Issues (20)
- No support of React-csv-reader for React version 18
- title/balloon help override HOT 2
- Can't open files list from chrome
- validating csv file HOT 9
- onFileLoaded doesnt return data for second time HOT 9
- npm run build failed to compile in create-react-app project HOT 3
- Camel case naming convention HOT 2
- How to customize the CSVReader file upload into button HOT 1
- How can I access default file info using e.target.files[0] for uploading loaded file to server using axios? HOT 2
- is it possible to run onFileLoaded when I am manually adding the file using drop event
- add `inputRef` feature HOT 2
- Support for xlsx input HOT 1
- upgrade peer dependency React to v17.0.2 HOT 1
- custom delimeter for csv HOT 1
- npm run build failed to compile HOT 1
- Translation? HOT 1
- project is dead? HOT 1
- Hosted Link is not working HOT 1
- onFileLoaded function error HOT 1
- React peer dependency version doesn't resolve for React 17 projects anymore HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-csv-reader.