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

Manual sort with multiple drag #180

Open
Daniel-Valente opened this issue Dec 16, 2022 · 1 comment
Open

Manual sort with multiple drag #180

Daniel-Valente opened this issue Dec 16, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@Daniel-Valente
Copy link

Is your feature request related to a problem? Please describe.

I have started using this component and I have a question about its use the more I try it.
I try to use the manual sort together with the multiple drag, I see that you can easily move the nodes into each other using the multiple drag, but if I try to use the manual sort with multiple selection, it only sorts the last selected node.
I don't know if it is possible to use the multiple drag with the manual sort and have it work, I'm not sure if an additional configuration is needed or just the one presented in the documentation would work.

rec-area.webm

Describe alternatives you've considered
I cannot find another way of doing what I'm after. Any solution that would allow the correct position bout all node would be fine

@Daniel-Valente Daniel-Valente added the enhancement New feature or request label Dec 16, 2022
@abrman
Copy link
Contributor

abrman commented Jan 18, 2023

I'm pretty sure you could sort this out within the <Tree onDrop={handleDrop} /> property.
Are you able to provide a codesandbox example of what you got so far?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants