onDragLeave won't call back when react-dropzone has input element as children
See original GitHub issueIf i create a dropzone with input element as children, the dragleave callback won’t be call correctly.
<Dropzone disableClick multiple={false}>
<div><input type='text' /></div>
</Dropzone>
Here is the screenshot after drag in and dragout a while, the dragleave won’t callback anymore
Issue Analytics
- State:
- Created 8 years ago
- Reactions:1
- Comments:8
Top Results From Across the Web
HTML5 dragleave fired when hovering a child element
It's necessary to move completely out of the drop div and drag back into it again to make it red. Is it possible...
Read more >react-dropzone
Simple React hook to create a HTML5-compliant drag'n'drop zone for files. Documentation and examples at https://react-dropzone.js.org.
Read more >Dropzone - React - Procore
Files are accepted or rejected based on the accept, multiple, minFileSize and maxFileSize props. Accept must be a valid MIME type according to...
Read more >Drag & Drop - Uppy
The @uppy/drag-drop plugin renders a drag and drop area for file selection. it can be useful when you only want the local device...
Read more >React Dropzone and File Uploads in React - Upmostly
If you don't have an existing React project that uses the react-dropzone library, generate a new ... Clicking a file to upload won't...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This works around the issue by just not using the dropzone dragLeave, instead using a wrapper div.
@nqbao This might help you.