diff --git a/frontend/src/component/commandBar/CommandBar.tsx b/frontend/src/component/commandBar/CommandBar.tsx index 98e1171f0a31..25cb4889eaa6 100644 --- a/frontend/src/component/commandBar/CommandBar.tsx +++ b/frontend/src/component/commandBar/CommandBar.tsx @@ -171,12 +171,6 @@ export const CommandBar = () => { debouncedSetSearchState(value); }, [searchedFlagCount]); - useEffect(() => { - if (!searchLoading) { - selectFirstItem(); - } - }, [searchLoading, searchString]); - const onSearchChange = (value: string) => { debouncedSetSearchState(value); setValue(value); @@ -271,13 +265,6 @@ export const CommandBar = () => { }, ); - const selectFirstItem = () => { - const itemsAndIndex = findCommandBarLinksAndSelectedIndex(); - if (!itemsAndIndex) return; - const { allCommandBarLinks } = itemsAndIndex; - (allCommandBarLinks[0] as HTMLElement).focus(); - }; - useOnClickOutside([searchContainerRef], hideSuggestions); const onKeyDown = (event: React.KeyboardEvent) => { if (event.key === 'Escape') {