-
-
Notifications
You must be signed in to change notification settings - Fork 791
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
Dropping file into child element of drop zone opens it #876
Closed
1 of 2 tasks
matthewreiter opened this issue
Sep 13, 2019
· 2 comments
· Fixed by xmartinezpujol/frontend-quiz#27 or mmintel/tinacms-fields#1 · May be fixed by xmartinezpujol/frontend-quiz#51 or ajesse11x/dremio-oss#4
Closed
1 of 2 tasks
Dropping file into child element of drop zone opens it #876
matthewreiter opened this issue
Sep 13, 2019
· 2 comments
· Fixed by xmartinezpujol/frontend-quiz#27 or mmintel/tinacms-fields#1 · May be fixed by xmartinezpujol/frontend-quiz#51 or ajesse11x/dremio-oss#4
Labels
Comments
Troubleshooting that I have done indicates that The order of events is as follows:
|
matthewreiter
pushed a commit
to matthewreiter/react-dropzone
that referenced
this issue
Sep 13, 2019
This avoids unnecessary renders when drag targets change, which works around an issue where the drag targets get cleared out by the browser when dragging into a child element of the drop zone.
9 tasks
🎉 This issue has been resolved in version 10.1.9 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Do you want to request a feature or report a bug?
What is the current behavior?
When using the
accept
option to limit the allowed file types and also rendering separate content within the drop zone based on whether isDragAccept or isDragReject are true, dragging a supported file onto a child element of the drop zone shows "move" instead of "copy" and dropping the file then opens it instead of the event getting handled by the drop zone.If the current behavior is a bug, please provide the steps to reproduce.
https://codesandbox.io/embed/charming-microservice-7jyvw
Drag a supported file type (in this case .png) onto the text in the drop zone. The browser will then navigate to that file.
What is the expected behavior?
The dragged file should be handled by the drop zone.
Please mention other relevant information such as the browser version, Operating System and react-dropzone version.
This was tested on Firefox 69 and Chrome 76 on Windows 10 with react-dropzone 10.1.8.
The text was updated successfully, but these errors were encountered: