fix: remove DraggableEvent type from utils file (doesn't exist anymore)

This commit is contained in:
Braks
2021-07-17 21:11:39 +02:00
parent 51b120bd76
commit e77797acc7

View File

@@ -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');
};