Closed quilkin closed 1 year ago
Sorry this isn't documented well yet, but as of https://github.com/MaxLeiter/sortablejs-vue3/pull/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?