fix: remove DraggableEvent type from utils file (doesn't exist anymore)
This commit is contained in:
+1
-2
@@ -1,7 +1,6 @@
|
|||||||
import { Dimensions, XYPosition, NodeExtent } from '../types';
|
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;
|
const target = e.target as HTMLElement;
|
||||||
return ['INPUT', 'SELECT', 'TEXTAREA', 'BUTTON'].includes(target.nodeName) || target.hasAttribute('contentEditable');
|
return ['INPUT', 'SELECT', 'TEXTAREA', 'BUTTON'].includes(target.nodeName) || target.hasAttribute('contentEditable');
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user