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

I'm having difficulty swaping items between two lists in a group. #208

Open
JHCover opened this issue Mar 18, 2021 · 2 comments
Open

I'm having difficulty swaping items between two lists in a group. #208

JHCover opened this issue Mar 18, 2021 · 2 comments

Comments

@JHCover
Copy link

JHCover commented Mar 18, 2021

The items will swap positions with each other if they're in the same list, but when I try to swap items, using the swap plugin, between two lists I get this error:
NotFoundError: Node.insertBefore: Child to insert before is not a child of this node

here's an example:
https://codesandbox.io/s/stupefied-bash-g3kww?file=/src/App.js

Am I doing something wrong or is this not possible at the moment?

@Reg93
Copy link

Reg93 commented Oct 6, 2023

I also have a problem with Swap. It works incorrect between groups, but inside groups it works right. In console levels are right, but it renders wrong.

https://codesandbox.io/s/relaxed-wing-j49qd7?file=/src/App.js

@ADTC
Copy link

ADTC commented Oct 10, 2024

@JHCover @Reg93 It looks like using a group of multiple lists will NOT work with the Swap plugin. You have to the disable Swap plugin, unfortunately. (I would consider this as a bug, as theoretically it should work.)

This is an example of multi-list without swap. Items can only be re-ordered, not swapped, but they can move between lists.

PS: @Reg93 it looks like your sandbox is an empty project. Is that intentional?

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

No branches or pull requests

3 participants