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 seem to be firing.

See original GitHub issue

I’m adding onFileDialogCancel like so:

<Dropzone
    name="rightNorth"
    multiple
    onFileDialogCancel={() => console.log('test')}
>
...
</Dropzone>

However I’m not receiving the callback when I cancel the dialog. Is this feature working? I’m using version 4.2.5

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:14

github_iconTop GitHub Comments

1reaction
viniciusdacalcommented, Mar 16, 2018

this and #557 are related. Will try to open a PR with the fix.

0reactions
caseprincecommented, Oct 14, 2019

Bump! - This caused a bug for our app. Windows 10, FF 69.0.3 (64-bit). We’ve come up with a workaround that increments a counter to trigger open() vs toggling a boolean.

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 >
onFileDialogCancel doesn't fire on Firefox on Mac #1031
onFileDialogCancel doesn't fire on Firefox on Mac If the current behavior ... Click the "Add img" button; Click "Cancel" on the file dialog....
Read more >
File Dialog Open error if Cancel selection is canceled
Hello, I have a file dialog box that opens so I can choose the .tsv file and insert into my form but I...
Read more >
Connecting to the ConfirmationDialog cancel button signal
I've been trying to get the cancel button signal too fire so I can gracefully handle cleaning up some shifted GUI elements.
Read more >
VBA: cancel file selection | MrExcel Message Board
When this prompt appears, a user might decide to skip selecting a file, so they click "Cancel" ... In what way doesn't it...
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