Sortable icon indicating copy to clipboard operation
Sortable copied to clipboard

Limit number of clones of each element (max 1)

Open clemmis opened this issue 4 years ago • 0 comments

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

clemmis avatar Sep 09 '22 03:09 clemmis