From 7ff4b5bb9b9e4702102888919ada181c3e8d9879 Mon Sep 17 00:00:00 2001 From: Robin Malfait Date: Sat, 10 May 2025 02:34:13 +0200 Subject: [PATCH] fix typo + drop unnecessary hook dependency --- packages/@headlessui-react/src/hooks/use-is-top-layer.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/@headlessui-react/src/hooks/use-is-top-layer.ts b/packages/@headlessui-react/src/hooks/use-is-top-layer.ts index 87e2e6b..b5b3b92 100644 --- a/packages/@headlessui-react/src/hooks/use-is-top-layer.ts +++ b/packages/@headlessui-react/src/hooks/use-is-top-layer.ts @@ -37,7 +37,7 @@ export function useIsTopLayer(enabled: boolean, scope: string | null) { stackMachine.selectors.isTop(state, id), stackMachine.selectors.inStack(state, id), ], - [stackMachine, id, enabled] + [stackMachine, id] ) ) @@ -49,7 +49,7 @@ export function useIsTopLayer(enabled: boolean, scope: string | null) { return () => stackMachine.actions.pop(id) }, [stackMachine, enabled, id]) - // If the hook is not enabled, we know for sure it is not going to tbe the + // If the hook is not enabled, we know for sure it is not going to be the // top-most item. if (!enabled) return false