FileInput onChange event not called when files are removed
See original GitHub issueExpected Behavior
The new FileInput component (introduced from issue #2535) onChange
event should be called when files are removed so client code can responded to removal.
Actual Behavior
onChange
is only called when files are added.
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (8 by maintainers)
Top Results From Across the Web
HTML input file selection event not firing upon selecting the ...
It adds an event listener to 'change', but I tested it and it triggers even if you choose the same file and not...
Read more >Input File change event not working - EncodeDna.com
A simple solution to get rid of this issue will be, to clear the file input value. I'll show you how. Let's see...
Read more >Using files from web applications - Web APIs - MDN Web Docs
Accessing selected file(s) on a change event. It is also possible (but not mandatory) to access the FileList through the change event.
Read more >JavaScript OnChange file input | by Quang Nguyen - Medium
Last month, I was working on a project that involved file/image uploading and I ... so the default input file name will not...
Read more >How to programmatically fire a click event for a file input ...
Example 1: We want to click the input file element automatically (programmatically). When the user clicks one button which is not the 'file...
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 FreeTop 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
Top GitHub Comments
Part of my point was we don’t have
onAdd
, when adding a subsequent file to a multiple file input. Also, Select that allows multiple options being selected only indicates changes to the selected options viaonChange
. I think it is more consistent to stay with justonChange
.Closing since #5028 was merged.