[feature] Possibility to create the clone manually (and prevent cloning if not necessary)
Author: hugomalletCreated Jun 30, 2021Updated Mar 7, 2026
Hi,
I have web components that I want to sort. But my web components expect a few parameters in constructors. But when I drag one, the element is cloned so I have an error due to missing constructor parameters. By the way, could we prevent the cloning of the element ?
It would be useful if we could create the clone on our own (so that we could possibly pass some additional parameters to the constructor)
Source: SortableJS/Sortable