Skip to content

Commit

Permalink
Fire dragleave even if nested element was removed from DOM
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon committed Oct 23, 2014
1 parent 48b2ba8 commit 5bba8c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/mixins/DragDropMixin.js
Expand Up @@ -449,6 +449,7 @@ var DragDropMixin = {
}

this._dragEntered = without(this._dragEntered, e.target);
this._dragEntered = this._dragEntered.filter(node => document.contains(node));

if (!this._dragEntered.length) {
this.setState({
Expand Down

0 comments on commit 5bba8c6

Please sign in to comment.