From f5d752134fe5d5a22edaa8aa45eaf87a23ac5783 Mon Sep 17 00:00:00 2001 From: Rusty Toms Date: Thu, 1 Jun 2017 15:27:17 -0600 Subject: [PATCH] ensure the drop target remains properly identified --- addon/mixins/draggable-column.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/addon/mixins/draggable-column.js b/addon/mixins/draggable-column.js index 64bfb274..3b16a06f 100644 --- a/addon/mixins/draggable-column.js +++ b/addon/mixins/draggable-column.js @@ -84,6 +84,14 @@ export default Ember.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); + } } },