Fix null item in kanban
This commit is contained in:
@@ -147,9 +147,13 @@
|
||||
self.drake = self.dragula(self.boardContainer, {
|
||||
moves: function (el, source, handle, sibling) {
|
||||
if (self.options.readOnly) { return false; }
|
||||
if (el.classList.contains('new-item')) { return false; }
|
||||
return handle.classList.contains('kanban-item');
|
||||
},
|
||||
accepts: function (el, target, source, sibling) {
|
||||
if (sibling === null) {
|
||||
return false;
|
||||
}
|
||||
if (self.options.readOnly) { return false; }
|
||||
return true;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user