From df0bfc0508b5e50763f01cb768af4e0f8d44c64b Mon Sep 17 00:00:00 2001 From: Mayank Arya Date: Tue, 15 Apr 2025 02:04:25 +0530 Subject: [PATCH] Fix #16 by removing `isHoverWanted` check from focus & blur event handlers --- app/_components/action-list/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/_components/action-list/index.tsx b/app/_components/action-list/index.tsx index 5cae4ab..dcd3c00 100644 --- a/app/_components/action-list/index.tsx +++ b/app/_components/action-list/index.tsx @@ -59,8 +59,8 @@ export default function ActionList({ actions, align = "left" }: { actions: Actio ref={action.primary ? primaryActionRef : undefined} onMouseEnter={e => isHoverWanted.matches && setHighlightedAction(e.currentTarget)} onMouseLeave={_ => isHoverWanted.matches && setHighlightedAction(primaryActionRef.current)} - onFocus={e => isHoverWanted.matches && setHighlightedAction(e.currentTarget)} - onBlur={_ => isHoverWanted.matches && setHighlightedAction(primaryActionRef.current)} + onFocus={e => setHighlightedAction(e.currentTarget)} + onBlur={_ => setHighlightedAction(primaryActionRef.current)} > {action.label}