You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change dragula([$('left-events'), $('right-events')]) to dragula([$('left-events'), $('right-events')], { copy: true }), and add subscription to 'cancel' event
Try to drag last item in the left column bit lower in bounds of its container and release - no cancel event raised
Reason: _copy is not in the dom, so getParent(_copy) returns null, and then isInitialPlacement returns false, and we go to drake.emit('drop', item, null.
Because of this bug there is no way to distinguish two situations:
Item was moved out of the container
Item moved inside the container
In the second case we should get 'cancel' event, but actually, in both cases we get 'drop" event with target = null.
The text was updated successfully, but these errors were encountered:
PFight
pushed a commit
to PFight/dragula
that referenced
this issue
Sep 9, 2021
Repro steps:
dragula([$('left-events'), $('right-events')])
todragula([$('left-events'), $('right-events')], { copy: true })
, and add subscription to 'cancel' eventReason: _copy is not in the dom, so getParent(_copy) returns null, and then isInitialPlacement returns false, and we go to
drake.emit('drop', item, null
.Because of this bug there is no way to distinguish two situations:
In the second case we should get 'cancel' event, but actually, in both cases we get 'drop" event with target = null.
The text was updated successfully, but these errors were encountered: