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
React DnD setup for nested sortable example? #332
Comments
If you have an error please produce an example reproducing this error. |
If you need anything else let me know. |
I have a working nested sortable setup in an app I am working on. I'm going to work on cleaning it up and throwing it up on Github. |
I copy pasted your example and couldn't get it to run. It doesn't explain what |
@tamagokun did you say you had a nested sortable example? I have been able to flesh out my components a little more but still haven't had time to wrap my head around nested sortable. Here is a link to the full source code https://bitbucket.org/bwaltz6/flow-builder/overview. Sorry, it's a lot of code and you probably won't be able to compile it because it is using a company specific npm repository. If needed I can hone it down. The files of interest are here: I think what I need to do now is add a |
Let me whip something up... |
@3Cbwaltz ok, take a look at this: https://github.com/tamagokun/example-react-dnd-nested You'll be most interested in |
@tamagokun I am facing the nested grouping problem #3343 while dragging the item which is a nested group, the ref.current gives drag item as parent group so I can't find the current item. Can you give your input on this, please |
I am working on a nested list component using react-dnd and I have used the simple sortable example. I can get the drag/drop working for first-level nodes, but then all children produce "TypeError: node is undefined" when trying to drag. Basically I have a menu component and an item component, and the item component calls itself if it has children.
Do you have an example for nested sortable lists?
The text was updated successfully, but these errors were encountered: