Skip to content

Commit 0180783

Browse files
committed
Update module.js
Fixed flickering effect being caused with the addition and removal of the overclass on drag. When OnDragLeave event triggers the logic should be if the two elements are not the same remove the over class, otherwise return.
1 parent 6c832bb commit 0180783

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/module.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1150,7 +1150,7 @@ module
11501150
* Event handler
11511151
*/
11521152
FileDrop.prototype.onDragLeave = function(event) {
1153-
if (event.currentTarget !== this.element[0]) return;
1153+
if (event.currentTarget === this.element[0]) return;
11541154
this._preventAndStop(event);
11551155
angular.forEach(this.uploader._directives.over, this._removeOverClass, this);
11561156
};

0 commit comments

Comments
 (0)