Closed andreiciobanica closed 1 year ago
The accept method of a droppable instance needs to check the incoming draggable/sortable against the 'accept' option of that droppable that can be either a function or a CSS selector. The behavior cannot be removed since it breaks an existing functionality.
The fix on the removeEventListener call for the 'contextmenu' event will be incorporated.
Solved right-click: #16 If you do
removeEventListener
, you need to pass same args as you doaddEventListener
.Solved #15
droppable.accept
function is only for first check in order toactivate the droppable
;useless droppables
and setcanUse
tofalse
;canUse
variable in the constructor of each droppable and when it is activated you set it ontrue
, it means you can use that specific droppable with the draggable;