question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DataTransfer's dropEffect not working on IE/Edge with not minified version react.js

See original GitHub issue

code exmaple: Non-minified version and Minified version

Both have the same code, html and js, the only difference is referenced to different version of react.js files.

There are three boxes. Dragging the “drag me” box will show a “start” at the top, then show a “over” if it is dragged over either “normal drop” or “drop react” box, and show a “end” with a drop to the two drop boxes.

Everything works fine on my Firefox(43.0.1), and the the Minified version works fine on my IE 11, and Edge(13).

The only thing dose not work is the Non-minified version on IE/Edge.

When dragging over the “drop react” box, there shows NO “over”. In the F12 console, I can see lines of “SCRIPT16389: Unspecified error.”. And with console.log(ev.dataTransfer), I get this result:

[object DataTransfer] {
   dropEffect: <Permission denied>,
   effectAllowed: "all",
   files: FileList {...}, 
   items: DataTransferItemList {...}, 
   types: DOMStringList {...}
}

I thought the dropEffect should also be accessible on IE/Edge with non-minified version react.js files?

Issue Analytics

  • State:open
  • Created 8 years ago
  • Reactions:1
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
PhilipJohnBasilecommented, Aug 27, 2022

Since IE is not supported anymore we should close this.

0reactions
AndyOGocommented, May 6, 2020

Trying to set dropEffect via nativeEvent attribute doesn’t work either 🤔

If you find that you need the underlying browser event for some reason, simply use the nativeEvent attribute to get it. https://reactjs.org/docs/events.html#overview

Read more comments on GitHub >

github_iconTop Results From Across the Web

HTML Drag & drop api not working when dropping elements ...
I have a web page where words need to be rearranged by drag and drop method. The app is built with React. My...
Read more >
501655 - When drag-and-dropping, dropEffect not updated
dataTransfer.dropEffect is "none" and stays that way. Meanwhile event.dataTransfer.effectAllowed changes value depending on what modifier keys ...
Read more >
Read more - UNPKG
defineProperty(exports, '__esModule', { value: true }); var React ... isMounted) return; //only make changes to state while on screen and not unloaded if ......
Read more >
react-dnd-html5-backend | Yarn - Package Manager
Important: This documentation covers modern versions of Yarn. For 1.x docs, see classic.yarnpkg.com. Yarn.
Read more >
main.18b409e1.js.map - Google Git
node_modules/react-dom/lib/ReactDOMComponentTree.js",". ... n *\n * NOTE: This will not work correctly for non-generic events such as `change`,\n * `reset`, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found