Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-kurmanov committed Aug 5, 2024
1 parent 021e548 commit 658040d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dragdrop/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export abstract class DragDropCore<T> implements IDragDropEngine {
event
);
this.onStartDrag(event);
const fromElement = this.draggedElement.parent;
const fromElement = this.draggedElement && this.draggedElement.parent;
this.onDragStart.fire(this, { fromElement: fromElement, draggedElement: this.draggedElement });
}

Expand Down

0 comments on commit 658040d

Please sign in to comment.