mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-11-18 19:54:35 +01:00
Include runtime types, otherwise ts goes crazy
This commit is contained in:
@@ -30,7 +30,7 @@ export function useOutsideClick<T extends HTMLElement>(
|
||||
return;
|
||||
}
|
||||
|
||||
const isInsideOverride = isInside?.(_event, ref.current);
|
||||
const isInsideOverride = isInside?.(_event as any, ref.current);
|
||||
|
||||
if (isInsideOverride === true) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user