Skip to content

Commit

Permalink
Merge pull request #137 from boris-petrov/fix-sortable-objects-destro…
Browse files Browse the repository at this point in the history
…yed-bug

Unset dragCoordinator's sortComponentController after a drop
  • Loading branch information
dgavey authored Nov 28, 2018
2 parents 54e531d + 3b6b761 commit 5b60a55
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions addon/components/sortable-objects.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export default Component.extend( {

drop(event) {
event.stopPropagation();
this.set('dragCoordinator.sortComponentController', undefined);
if (this.get('enableSort') && this.get('sortEndAction')) {
this.get('sortEndAction')(event);
}
Expand Down

0 comments on commit 5b60a55

Please sign in to comment.