question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`onFileDialogCancel` doesn't fire on Firefox on Mac

See original GitHub issue

Do 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.

  1. Open this codepen on FF on Mac: https://codepen.io/florantara/pen/1645ab3e5a88cad0b35fc5a5cc045750?editors=1111
  2. Click the “Add img” button
  3. 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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:8

github_iconTop GitHub Comments

1reaction
rolandjitsucommented, Nov 22, 2020

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.

0reactions
rolandjitsucommented, Feb 5, 2022
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found