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
The "copy" cursor icon is displayed when the file type is not supported. Expecting the "none" cursor to be displayed. #1042
Comments
@mdebeus the issue is that while dragging there's not much support in browsers to check the file type/size, etc. So it would be difficult to keep consistent across browsers. Furthermore, the logic for validation is outside of the callback, so it would require a bit of refactoring to change that. You're welcome to make a PR if you want. |
Here Line 559 in ebe2130
isEvtWithFiles(event)
Right now, everything that's dragged over a dropzone gets the green (+) sign, including things like links and html5 drag and drop object |
🎉 This issue has been resolved in version 11.3.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Hey, just found this is back again with v14.2.2... Is someone else having same issue as mine? macOS Monterey 12.4 |
We are using 14.2.1 and experiencing the same issue as well.... @diegolameira Were you ever able to come to a work-around on this by any chance? |
Do you want to request a feature or report a bug?
What is the current behavior?
When dragging a file into the drop-zone, the Copy cursor is displayed, even when the file type is not supported. I believe the fix for issue #749 is the culprit - the dropEffect should be set to "copy" only when the file type is supported, and set to "none" when the file type is not supported.
If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior?
The cursor shows the "none" dragEffect which indicates that the item may not be dropped.
If this is a feature request, what is motivation or use case for changing the behavior?
Please mention other relevant information such as the browser version, Operating System and react-dropzone version.
Browser: Chrome, Operating System: Windows, react-dropzone version: 10.2.1
The text was updated successfully, but these errors were encountered: