From f6e54b86b4522ce59c669b1b5f684a9d81235864 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 25 Dec 2016 12:22:56 +0100 Subject: [PATCH] Properly reverting drop area on unrelated drop --- .../files/js/WoltLabSuite/Core/Ui/Redactor/DragAndDrop.js | 1 + 1 file changed, 1 insertion(+) diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Redactor/DragAndDrop.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Redactor/DragAndDrop.js index 96320437d2..80d22b297a 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Redactor/DragAndDrop.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Redactor/DragAndDrop.js @@ -192,6 +192,7 @@ define(['Dictionary', 'EventHandler', 'Language'], function (Dictionary, EventHa window.addEventListener('dragover', this._dragOver.bind(this)); window.addEventListener('dragleave', this._dragLeave.bind(this)); + window.addEventListener('drop', this._dragLeave.bind(this)); _didInit = true; } -- 2.20.1