From e77797acc74cf38334465617a94a4cba033d9c11 Mon Sep 17 00:00:00 2001 From: Braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Sat, 17 Jul 2021 21:11:39 +0200 Subject: [PATCH] fix: remove DraggableEvent type from utils file (doesn't exist anymore) --- src/utils/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/utils/index.ts b/src/utils/index.ts index 5377cab5..a817fdb7 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -1,7 +1,6 @@ import { Dimensions, XYPosition, NodeExtent } from '../types'; -import { DraggableEvent } from '@braks/revue-draggable'; -export const isInputDOMNode = (e: KeyboardEvent | DraggableEvent['event']): boolean => { +export const isInputDOMNode = (e: KeyboardEvent | MouseEvent): boolean => { const target = e.target as HTMLElement; return ['INPUT', 'SELECT', 'TEXTAREA', 'BUTTON'].includes(target.nodeName) || target.hasAttribute('contentEditable'); };