0

I have two lists that are controlled by the jQuery UI widget Sortable.

One list is intended to supply values for another. The receiving list is supposed to have a hard limit of 10 items.

Now, I can implement an event listener that keeps count of the list elements and disables the reception list when the limit is hit. However, this also disables the removal of elements.

Is there a way to block the drop into a sortable list while still allowing drag outs?

List 1 < -- Elements swapped between -- > List 2

List 1 now contains 10 elements, is disabled to drag and drop.
How can list 1's drop event be blocked while allowing drag?
4

0 回答 0