Skip to content

Commit 4a838fd

Browse files
committed
2 parents f9fee20 + 2162e45 commit 4a838fd

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

angular-file-upload.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1155,7 +1155,7 @@ module
11551155
* Event handler
11561156
*/
11571157
FileDrop.prototype.onDragLeave = function(event) {
1158-
if (event.target !== this.element[0]) return;
1158+
if (event.currentTarget !== this.element[0]) return;
11591159
this._preventAndStop(event);
11601160
angular.forEach(this.uploader._directives.over, this._removeOverClass, this);
11611161
};
@@ -1316,5 +1316,6 @@ module
13161316
}
13171317
};
13181318
}])
1319+
13191320
return module;
13201321
}));

src/module.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1139,7 +1139,7 @@ module
11391139
* Event handler
11401140
*/
11411141
FileDrop.prototype.onDragLeave = function(event) {
1142-
if (event.target !== this.element[0]) return;
1142+
if (event.currentTarget !== this.element[0]) return;
11431143
this._preventAndStop(event);
11441144
angular.forEach(this.uploader._directives.over, this._removeOverClass, this);
11451145
};
@@ -1299,4 +1299,4 @@ module
12991299
};
13001300
}
13011301
};
1302-
}])
1302+
}])

0 commit comments

Comments
 (0)