diff --git a/web/app/components/goto-anything/command-selector.tsx b/web/app/components/goto-anything/command-selector.tsx index 2b62c92a59..d13421a0eb 100644 --- a/web/app/components/goto-anything/command-selector.tsx +++ b/web/app/components/goto-anything/command-selector.tsx @@ -61,7 +61,7 @@ const CommandSelector: FC = ({ actions, onCommandSelect, searchFilter, co className="flex cursor-pointer items-center rounded-md p-2.5 transition-all - duration-150 hover:bg-state-base-hover-alt aria-[selected=true]:bg-state-base-hover" + duration-150 hover:bg-state-base-hover aria-[selected=true]:bg-state-base-hover-alt" onSelect={() => onCommandSelect(action.shortcut)} > diff --git a/web/app/components/goto-anything/index.tsx b/web/app/components/goto-anything/index.tsx index 2d2d56eea1..bff0773a46 100644 --- a/web/app/components/goto-anything/index.tsx +++ b/web/app/components/goto-anything/index.tsx @@ -37,6 +37,7 @@ const GotoAnything: FC = ({ const handleNavSearch = useCallback((q: string) => { setShow(true) setSearchQuery(q) + setCmdVal('') requestAnimationFrame(() => inputRef.current?.focus()) }, []) // Filter actions based on context @@ -333,7 +334,7 @@ const GotoAnything: FC = ({ handleNavigate(result)} > {result.icon}