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

Unwanted text duplication with sortableJS #2601

Open
raphaelriehl opened this issue Jan 31, 2024 · 3 comments
Open

Unwanted text duplication with sortableJS #2601

raphaelriehl opened this issue Jan 31, 2024 · 3 comments

Comments

@raphaelriehl
Copy link

raphaelriehl commented Jan 31, 2024

Hello,
I want to create a block in which the elements are sortable.
The problem is that when I sort the elements with sortableJS, their content is duplicated and added after my block.
Here is a video to explain :

editorjs-and-sortablejs.mp4

And a Codepen link that reproduces the problem :
https://codepen.io/raphaelriehl/pen/QWoxqaE

The purpose of this plugin is to create a photo gallery with the possibility of reordering photos.

How to solve this problem ?

@raphaelriehl
Copy link
Author

I updated my first post to better understand how to reproduce the bug (video + codepen).
If someone has an idea ?

@raphaelriehl raphaelriehl changed the title Unwanted Text Duplication Issue Unwanted text duplication with sortableJS Feb 6, 2024
@SlavaDidenko
Copy link

The same problem, who has a solution, please share.

@raphaelriehl
Copy link
Author

@SlavaDidenko I submitted a pull request which corrects the problem but I don't know if it will be validated and if it doesn't create a regression.
You can test the solution if you want : 0d1d53a

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

2 participants