Skip to content

Commit

Permalink
Comments out e.dataTransfer.dropEffect = 'none' for native items
Browse files Browse the repository at this point in the history
This fixes interference with drop events of native drag-n-drop (for example for file uploads with Dropzone). See react-dnd#457 (comment)
  • Loading branch information
silvainSayduck committed Jan 9, 2019
1 parent 22666e7 commit d12b45e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-dnd-html5-backend/src/HTML5Backend.ts
Expand Up @@ -543,7 +543,7 @@ export default class HTML5Backend implements Backend {
// Don't show a nice cursor but still prevent default
// "drop and blow away the whole document" action.
e.preventDefault()
e.dataTransfer.dropEffect = 'none'
// e.dataTransfer.dropEffect = 'none'
} else {
e.preventDefault()
e.dataTransfer.dropEffect = 'none'
Expand Down

0 comments on commit d12b45e

Please sign in to comment.