ember-drag-drop icon indicating copy to clipboard operation
ember-drag-drop copied to clipboard

DragOvering the DraggableObject from one SortableObjects to another not working properly. #212

Open kesavan-ss opened this issue 1 year ago • 0 comments

Hello, When dragging the object and dragOvering to another list. It was added to the new list even without dropping the item. And not able to shift that item without dropping the currentDragItem. Then I need to drop the current item, drag and dragover the object again to shift the object.

The reason is, const hasSameSortingScope = this. get('currentDragItem.sortingScope ') === emberObject.get('sortingScope'); this.get return undefined in this chain path.

sol: const hasSameSortingScope = this. get('currentDragItem').sortingScope === emberObject.get('sortingScope'); or const hasSameSortingScope = this.currentDragItem.sortingScope === emberObject.sortingScope;

Hopefully, it will not change other behaviors.

kesavan-ss avatar Jul 14 '23 08:07 kesavan-ss