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)
FWIW everyone, made
react-dragulaso we can further tweakreact-specificdragulathere. Of course, we would still need to expose primitives indragulaif they’re needed byreact-dragula.https://github.com/bevacqua/react-dragula