From dc0c93afd75115eb250c30c202435f2c13ef25d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Raimund=20Schl=C3=BC=C3=9Fler?= Date: Thu, 23 May 2019 09:53:46 +0200 Subject: [PATCH] Don't force subtasks container be visible on dnd MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Raimund Schlüßler --- css/src/style.scss | 4 ---- src/components/TaskDragContainer.vue | 23 +---------------------- 2 files changed, 1 insertion(+), 26 deletions(-) diff --git a/css/src/style.scss b/css/src/style.scss index 3d49894f3..56af9bda3 100644 --- a/css/src/style.scss +++ b/css/src/style.scss @@ -458,10 +458,6 @@ background-color: rgba( $color-primary, .3 ); } - &.dragover > div.subtasks-container > ol { - min-height: 37px; - } - .subtasks-container { margin-left: 35px; diff --git a/src/components/TaskDragContainer.vue b/src/components/TaskDragContainer.vue index aa71afd30..315a4e26f 100644 --- a/src/components/TaskDragContainer.vue +++ b/src/components/TaskDragContainer.vue @@ -26,7 +26,7 @@ License along with this library. If not, see . :move="onMove" @end="onEnd" > - + @@ -53,16 +53,6 @@ export default { 'setStart', ]), - /** - * Called when a task is dragged. - * - * @param {Object} $event The event which caused the move - */ - onMove: function($event) { - this.cleanUpDragging() - $event.related.classList.add('dragover') - }, - /** * Called when a task is dropped. * @@ -78,20 +68,9 @@ export default { // Move the task to a new calendar or parent. this.prepareMoving(task, $event) this.prepareCollecting(task, $event) - this.cleanUpDragging() $event.stopPropagation() }, - /** - * Called when we stopped dragging. Cleans up temporarily added classes. - */ - cleanUpDragging: function() { - var items = document.getElementsByClassName('task-item') - for (let i = 0; i < items.length; i++) { - items[i].classList.remove('dragover') - } - }, - /** * Function to move a task to a new calendar or parent *