riktar / jkanban

Vanilla Javascript plugin for manage kanban boards
https://www.riccardotartaglia.it/jkanban/
Apache License 2.0
1.07k stars 297 forks source link

Disable Drag on click #88

Closed foxymophandlemama closed 4 years ago

foxymophandlemama commented 4 years ago

Hi, i'm having some dificulty in this situation:

I have a form that ist loaded by ajax inside the kanban cards when click of a button inside each card. I need to disable the drag when the form is loaded, cause the card is expanded when the form is loaded and i dont want the card to be dragged and also cause the datepicker in fhe form is not working when the drag option is set to true in the kanban.

I tried fo use anothe rsolution showed here

jkanban = new jKanban({ element: "#mykanban", dropBoard: function(el, target, source, sibling) { jkanban.drake.cancel(true); } });

But it really doesnt disable the drag.

foxymophandlemama commented 4 years ago

I realise i can just remove the classes from the header.