Sortable
Sortable copied to clipboard
Limit number of clones of each element (max 1)
Hi,
I'd appreciate any help I could get with this one.
I would like the distribution of clones within the shared environment to be limited to one. Referring to the sandbox below, if an element from List A is already in the container div (in List B, C or D), it will produce an error message: "Element X already exists in List Y" and the element should not be allowed to be dropped.
Is this possible to achieve?
codesandbox https://jsbin.com/sokilulara/edit?html,js,output
Thanks in advance,
Christine