diff --git a/islands/KMenu.tsx b/islands/KMenu.tsx index b8706ec..209e4ec 100644 --- a/islands/KMenu.tsx +++ b/islands/KMenu.tsx @@ -150,7 +150,7 @@ export const KMenu = ( } else { input.current?.blur(); } - }, document?.body); + }, typeof document !== "undefined" ? document?.body : undefined); return (