Skip to content
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

edge/Win10 after d&d mouse click does not responding #390

Closed
vavdav opened this issue Feb 25, 2016 · 2 comments
Closed

edge/Win10 after d&d mouse click does not responding #390

vavdav opened this issue Feb 25, 2016 · 2 comments

Comments

@vavdav
Copy link

vavdav commented Feb 25, 2016

I have problem with win10 and edge any another browser works correctly. After drag & drop clicking on everything does not working. Does anybody know how to solve it?

@BugsBunny338
Copy link

Ok, we finally figured out what was the problem. For anyone experiencing the same issue:

In MSEdge (and it seems ONLY in MSEdge; other IE versions, Firefox, Chrome, Safari, ... worked fine) the whole UI of our React application stopped responding. No error message, nothing, the page just went dead.

We implemented our DropHere component as such:

import { DropTarget } from 'react-dnd';

class DropHere {
   /* ... code shortened for brevity ... */
  render() {
    const { canDrop } = this.props;
    return canDrop ? <div>drop here</div> : false;
  }
}

export default DropTarget(types, spec, collect)(DropHere);

So that dropzone only appears while dragging. What fixed the problem with frozen UI was to always render the dropzone div and hide it with CSS when nothing is being dragged.

@gaearon
Copy link
Member

gaearon commented Feb 28, 2016

Thanks for reporting. I moved this to the appropriate repo: react-dnd/react-dnd-html5-backend#24.

@gaearon gaearon closed this as completed Feb 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants