-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to detect when the file picker is canceled? #88
Comments
Hi @f957-cua, If you want to add a backdrop, I'd probably try to make a workaround by adding a visual element that clearly indicates user has to click on it in order to dismiss. For example a button with an unambiguous icon in the middle of the screen. |
Hi @MrKampla, Is it possible? |
I understand, but as I said, there's no reliable way of doing that, so use-file-picker package is also not offering such functionality. |
I know. |
As @MrKampla said:
I'm closing it, feel free to open another issue if you have any questions |
Hi there!
Brilliant package with many options.
It would be nice to have an onCancel callback to control this stage properly.
I mean to control the cancel button and the picker window close button.
Approach to openning filePicker simultaneously with backdrop behind is very popular nowadays.
And how to cover the case closing backdrop if user close filePicker with any selected files.
I have found the same needs with another library:
pnp/sp-dev-fx-controls-react#665
The text was updated successfully, but these errors were encountered: