Properly reverting drop area on unrelated drop
authorAlexander Ebert <ebert@woltlab.com>
Sun, 25 Dec 2016 11:22:56 +0000 (12:22 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 25 Dec 2016 11:22:56 +0000 (12:22 +0100)
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Redactor/DragAndDrop.js

index 96320437d277b6cba05271afea56210951a27c1d..80d22b297a2d239f192f7c052c508982b339161e 100644 (file)
@@ -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;
                }