Cancel drag
See original GitHub issueI’m trying to cancel a drag event in order to prevent moving cards on a automatic board, but when I call jkanban.drake.cancel(true)
the dragula raises an exception saying “el is null” on touchy function.
Do you have any suggestion to implement a “beforeDrag” event in order to validate if a card can be moved? I’m intended to develop that on jKanban.
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
How do I cancel my subscription? - Drag Help Desk
Drag allows paid users to cancel their paid subscription at any time, with such cancellation taking effect at the next renewal date.
Read more >How to cancel an HTML5 drag (and drop) operation using ...
You can cancel it by calling event.preventDefault() in the event handler. For example this should work: <p id="p1" draggable="true" ...
Read more >Drag operations - Web APIs | MDN
If it is, we will cancel the event so that a drop may be allowed. If the drag data does not contain a...
Read more >Cancel Drag Drop - Unreal Engine Documentation
Cancels any current drag drop operation. Target is Widget Blueprint Library. Cancel Drag Drop.
Read more >Cancel Drag Start - WPF TreeView - Documentation
This article demonstrates how to cancel the drag operation before it started. This is useful when you want to forbid dragging specific items...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m having the same issue. If I drop an item on a non-allowed target, the dropEl is still fired.
I think I’m going to use a custom drag validation, as @marcosrocha85 suggested.
fixed in: https://github.com/riktar/jkanban/commit/d7ef0efec048595cd0dba34744028b19e55af19c