Closed Rampesna closed 3 years ago
Thanks for opening a new issue. The team has been notified and will review it as soon as possible. For urgent issues and priority support, visit https://xscode.com/riktar/jkanban
{
id: id,
title: title,
draggable: false // custom data i was add
}
I was add custom data(draggable) for item. And i am controlling this data on dragEl function;
dragEl: function (el, source) {
if (el.dataset.draggable === 'false') {
// How can i stop drag transaction at here?
}
},
I want to stop drag transaction if draggable data is false. I tried return false;
but it wasn't work.
This is enought for block any item draggable for me but i cant stop drag transaction.
I tried but it gives me an error:
Uncaught TypeError: Cannot read property 'getBoundingClientRect' of null
// ...
var r = function (e) {
var t = e.getBoundingClientRect();
return {
left: t.left + K("scrollLeft", "pageXOffset"),
top: t.top + K("scrollTop", "pageYOffset")
}
}(m);
// ...
I was fixed problem like that;
var r = function (e) {
var t = e.getBoundingClientRect();
if (t) {
return {
left: t.left + K("scrollLeft", "pageXOffset"),
top: t.top + K("scrollTop", "pageYOffset")
}
}
}(m);
Thanks!
Very good. Please close the issue.
I want to block some items dragging, how can i do?