From a2095185166d3571a7c4706b6167ff7f907c94b8 Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Thu, 27 Oct 2022 15:20:27 +0400 Subject: [PATCH] Up Droppable --- src/utils/Droppable.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/utils/Droppable.ts b/src/utils/Droppable.ts index e925ce000..6f6d15c83 100644 --- a/src/utils/Droppable.ts +++ b/src/utils/Droppable.ts @@ -100,13 +100,12 @@ export default class Droppable { } handleDragEnter(ev: DragEvent | Event) { - const { em } = this; + const { em, canvas } = this; const dt = (ev as DragEvent).dataTransfer; this.updateCounter(1, ev); if (this.over) return; this.over = true; const utils = em.get('Utils'); - const canvas = em.get('Canvas'); // For security reason I can't read the drag data on dragenter, but // as I need it for the Sorter context I will use `dragContent` or just // any not empty element