Choosing the same file doesn't trigger onChange
See original GitHub issueThis is only from initial testing, but wondering if anyone else can reproduce. Here is my scenario using similar markup as the readme:
- Click “Select a file!” button and select
house.jpg
. This triggers onChange, everything is fine. - Click “Select a file!” button again and select
house.jpg
again. This does not trigger onChange. I would expect re-rendering would solve this issue but it doesn’t.
This is a really weird issue so again I’m just wondering if this is an actual problem with the component itself.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:6
- Comments:14 (3 by maintainers)
Top Results From Across the Web
How to detect input type=file "change" for the same file?
Create a function that fires 'onChange' that will read->store->compare metadata of the current file against the previous files. Then you can trigger your...
Read more >Input file selection event not firing upon selecting the same file
The problem is when I am choosing the same file to upload @change handler (onFileChange) doesn't fire. This is different from Firefox in ......
Read more >Input File change event not working - EncodeDna.com
When you choose a file for the first time, it will alert and show the file detail. Choose the same file again, the...
Read more >Solved: on change of html input form element does not work...
Solved: In my custom widget html I have: in my widget (startup or onOpen) I have: on(this.uploadForm, "change",
Read more >Upload same image not working - OutSystems
This is because OnChange even only gets triggered when you change the value in target control. So in your case if you select...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Another way to handle this is to set input value to ‘’. It could be done on the
onChange
event: