Fix null item in kanban

This commit is contained in:
yflory
2019-12-09 11:03:11 +01:00
parent 3f77a800cf
commit b558d6e354
2 changed files with 5 additions and 1 deletions

View File

@@ -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;
},