diff --git a/packages/editor/src/lib/editor/tools/SelectTool/children/EditingShape.ts b/packages/editor/src/lib/editor/tools/SelectTool/children/EditingShape.ts index 7bd94f247..c47fd99db 100644 --- a/packages/editor/src/lib/editor/tools/SelectTool/children/EditingShape.ts +++ b/packages/editor/src/lib/editor/tools/SelectTool/children/EditingShape.ts @@ -20,7 +20,7 @@ export class EditingShape extends StateNode { } } - onPointerLeave: TLEventHandlers['onPointerEnter'] = (info) => { + onPointerLeave: TLEventHandlers['onPointerLeave'] = (info) => { switch (info.target) { case 'shape': { this.editor.setHoveredId(null) diff --git a/packages/editor/src/lib/editor/tools/SelectTool/children/Idle.ts b/packages/editor/src/lib/editor/tools/SelectTool/children/Idle.ts index ba29ce8a2..f66564778 100644 --- a/packages/editor/src/lib/editor/tools/SelectTool/children/Idle.ts +++ b/packages/editor/src/lib/editor/tools/SelectTool/children/Idle.ts @@ -48,7 +48,7 @@ export class Idle extends StateNode { } } - onPointerLeave: TLEventHandlers['onPointerEnter'] = (info) => { + onPointerLeave: TLEventHandlers['onPointerLeave'] = (info) => { switch (info.target) { case 'shape': { this.editor.setHoveredId(null) diff --git a/packages/editor/src/lib/editor/tools/TextShapeTool/children/Idle.ts b/packages/editor/src/lib/editor/tools/TextShapeTool/children/Idle.ts index a7557b0b0..34d81fb46 100644 --- a/packages/editor/src/lib/editor/tools/TextShapeTool/children/Idle.ts +++ b/packages/editor/src/lib/editor/tools/TextShapeTool/children/Idle.ts @@ -26,7 +26,7 @@ export class Idle extends StateNode { } } - onPointerLeave: TLEventHandlers['onPointerEnter'] = (info) => { + onPointerLeave: TLEventHandlers['onPointerLeave'] = (info) => { switch (info.target) { case 'shape': { this.editor.setHoveredId(null)