4 ms·
> Which means none of the existing drag and drop solutions will work (any DOM manipulation without react knowing about it will cause trouble) Um, we totally us
by mikewhy 12y ago
> Which means none of the existing drag and drop solutions will work (any DOM manipulation without react knowing about it will cause trouble)
Um, we totally use jquery-ui's drag and drop in a React component in production and nothing bad happens.
- rpwverheij 12y agoAh, ok. Good to know. You just listen to the drop events and then update the state of react?
- mikewhy 12y agoYup, but it's not necessarily UI state that gets updated, just something that maps draggables to where they've been dropped.
- rpwverheij 12y agoyes, like updating the position in a sorted list you mean right. And did you also get it to work with touch events on mobile? I have an open question about that on SO http://stackoverflow.com/questions/27837500/drag-and-drop-with-touch-support-for-react-js http://stackoverflow.com/questions/27837500/drag-and-drop-wi...
- mikewhy 12y agoSimply adding jquery-ui.touch-punch[0] monkey patched jquery-ui without us having to do anything else. [0]: http://touchpunch.furf.com/ http://touchpunch.furf.com/