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
I am trying to stop a drag from list A to list B (drags from B to A are allowed). I have tried handling both the move and the end events, but cannot prevent them: function checkMove(e) { var c = e.cancelable; if (e.to.dataset.list == "startGrid") e.preventDefault(); }
the debugger clearly shows 'preventDefault' being reached, but the move still ocurs. This seems pretty basic; what am I doing wrong here?
The text was updated successfully, but these errors were encountered:
Sorry this isn't documented well yet, but as of #56 you can pass @move.capture to the component to return false/true/etc based on your logic. See the PR description for an example.
I am trying to stop a drag from list A to list B (drags from B to A are allowed). I have tried handling both the
move
and theend
events, but cannot prevent them:function checkMove(e) { var c = e.cancelable; if (e.to.dataset.list == "startGrid") e.preventDefault(); }
the debugger clearly shows 'preventDefault' being reached, but the move still ocurs. This seems pretty basic; what am I doing wrong here?
The text was updated successfully, but these errors were encountered: