diff --git a/src/hooks/useDrag.ts b/src/hooks/useDrag.ts index 3f20adfc..878a966d 100644 --- a/src/hooks/useDrag.ts +++ b/src/hooks/useDrag.ts @@ -41,7 +41,7 @@ function getParentNodePosition(nodeInternals: NodeInternals, nodeId?: string): X }; } -export function selectorExistsTargetToNode(target: Element, selector: string, nodeRef: RefObject): boolean { +function selectorExistsTargetToNode(target: Element, selector: string, nodeRef: RefObject): boolean { let current = target; do { if (current?.matches(selector)) return true;