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

"confirmChange" prevents reordering as well as nesting #77

Open
lucioperca opened this issue Nov 3, 2021 · 0 comments
Open

"confirmChange" prevents reordering as well as nesting #77

lucioperca opened this issue Nov 3, 2021 · 0 comments
Labels

Comments

@lucioperca
Copy link

When the confirmChange property is provided and returns false for a given item and parent, AND the parent is currently expanded, the item is prohibited from being dragged below the parent altogether, rather than just preventing a parent-child relationship.

To reproduce:

  1. Go to the demo (https://primetwig.github.io/react-nestable/dist/example/) and choose "Example with confirmChange".
  2. Attempt to drag "Fruit box" below "Box" (without first collapsing "Box").

Expected result: "Fruit box" is allowed to be reordered below "Box". (But not marked as a child of "Box".)
Actual result: "Fruit box" is prevented from moving in any way.

Note that collapsing "Box" DOES allow me to drag "Fruit box" below it.

@primetwig primetwig added the bug label Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants