Skip to content

Commit

Permalink
[BUGFIX release]: Ensure the drop target remains properly identified (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
RustyToms authored and alexander-alvarez committed Oct 18, 2017
1 parent a8e93a1 commit 2e2faf9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions addon/mixins/draggable-column.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,14 @@ export default Mixin.create({

if (this.get('isDropTarget')) {
e.preventDefault();
/*
NOTE: dragLeave will be triggered by any child elements inside the
column. This code ensures the column being dragged over continues to be
identified as the current drop target
*/
if (!this.get('isDragTarget')) {
this.set('isDragTarget', this.get('column') !== sourceColumn);
}
}
},

Expand Down

0 comments on commit 2e2faf9

Please sign in to comment.