dragula: Invariant Violation when using React.js

When using dragula to drag and drop react element’s an error is throw because cloning elements will end up having two elements with same data-reactid attribute.

This is what the log says:

Uncaught Error: Invariant Violation: ReactMount: Two valid but unequal nodes with the same `data-reactid`: .0.0.0.1:$0.0.4.1.0.0.3.0

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 16 (6 by maintainers)

Most upvoted comments

FWIW everyone, made react-dragula so we can further tweak react-specific dragula there. Of course, we would still need to expose primitives in dragula if they’re needed by react-dragula.

https://github.com/bevacqua/react-dragula