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

[bug] Source element ID removed when cloned #2236

Open
mwillema opened this issue Dec 8, 2022 · 0 comments
Open

[bug] Source element ID removed when cloned #2236

mwillema opened this issue Dec 8, 2022 · 0 comments

Comments

@mwillema
Copy link

mwillema commented Dec 8, 2022

Describe the bug

When draggable elements have an id, this one is removed when one of those elements is cloned.

To Reproduce

  1. Go to https://jsbin.com/ruxecon/1/edit?html,js,output
  2. Drag an item from the first list, eg "foo" to the second list
  3. Inspect the HTML and observe that the dragged item from the first list, eg "foo", doesn't have its ID, ie "A1" anymore.

Expected behavior

The IDs of the elements having been dragged should still be present.

It makes sense that the IDs are removed on the cloned elements, ie the new ones, but not on the original elements.

Information

sortablejs = "^1.15.0

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

1 participant