From: Alexander Ebert Date: Sun, 25 Dec 2016 11:22:56 +0000 (+0100) Subject: Properly reverting drop area on unrelated drop X-Git-Tag: 3.0.0_RC_3~50 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f6e54b86b4522ce59c669b1b5f684a9d81235864;p=GitHub%2FWoltLab%2FWCF.git Properly reverting drop area on unrelated drop --- 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; }