`onFileDialogCancel` doesn't fire on Firefox on Mac
See original GitHub issueDo you want to request a feature or report a bug?
- I found a bug
- I want to propose a feature
What is the current behavior?
onFileDialogCancel
doesn’t fire on Firefox on Mac
If the current behavior is a bug, please provide the steps to reproduce.
- Open this codepen on FF on Mac: https://codepen.io/florantara/pen/1645ab3e5a88cad0b35fc5a5cc045750?editors=1111
- Click the “Add img” button
- Click “Cancel” on the file dialog
It should log to the console but it doesn’t.
What is the expected behavior? It should fire the event and log to the console.
Please mention other relevant information such as the browser version, Operating System and react-dropzone version.
- version
11.2.4
- macOS Catalina
- Firefox
82.0.3
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:8
Top Results From Across the Web
Cancel event on input type="file" - javascript - Stack Overflow
I've read the answers to this question: Capturing cancel event on input type=file but they don't work, as the change event doesn't fire...
Read more >[MacOS 10.14] Cannot choose where to download files or ...
Hi Marcia. I am running 10.14 Beta 9 (18A384a). The issue existed in previous Betas but I did not report the bug until...
Read more >How do I fix this? Dialog boxes won't open completely and ...
Dialog boxes won't open completely and competion boxes don't work. ... Mac: Delete Firefox from the Applications folder.
Read more >Filesystem Explorer window not showing up - can't upload or ...
When trying to upload files to Google Drive I click the "Upload Files" option but the filesystem explorer window doesn't show up.
Read more >Select Files to Upload Dialog/Window Is Not Retina Quality on ...
Firefox 32.0.2 on Mac OS X 10.9.4. ... On Facebook it doesn't. I think it depends whether a site uses a Flash 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
Hmm … I definitely see the cb called, but it’s not called when you’d expect. It looks like it’s called only when you focus out and back on the window.
I think this is due to the hacky way we handle this dialog cancel. Because we expect the app window to be out of focus when the dialog is shown, but it seems like Firefox works differently.
Not sure how we could fix this without adding some other hacks. I’m open to suggestions.
Closed by https://github.com/react-dropzone/react-dropzone/commit/3ad4f007d70401e1d9adbc93ba2dfd69cc8c2a27. This is the best I could do for now.