question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I’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:closed
  • Created 5 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
adryx92commented, Jun 5, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found