From d8940840052ba3fba030b4738cf58b802af45a53 Mon Sep 17 00:00:00 2001 From: Max Bolotin Date: Fri, 26 Aug 2022 10:32:03 +0200 Subject: [PATCH] fix: multidragkey not working as stated in docs --- plugins/MultiDrag/MultiDrag.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/plugins/MultiDrag/MultiDrag.js b/plugins/MultiDrag/MultiDrag.js index db9b7bc09..e3c2c5476 100644 --- a/plugins/MultiDrag/MultiDrag.js +++ b/plugins/MultiDrag/MultiDrag.js @@ -309,10 +309,7 @@ function MultiDragPlugin() { children = parentEl.children; // Multi-drag selection - if (!dragStarted) { - if (options.multiDragKey && !this.multiDragKeyDown) { - this._deselectMultiDrag(); - } + if (!dragStarted && (!options.multiDragKey || this.multiDragKeyDown)) { toggleClass(dragEl, options.selectedClass, !~multiDragElements.indexOf(dragEl)); if (!~multiDragElements.indexOf(dragEl)) {