diff --git a/ui/component/wunderbarSuggestions/view.jsx b/ui/component/wunderbarSuggestions/view.jsx index 68a23d37d..79510c3fa 100644 --- a/ui/component/wunderbarSuggestions/view.jsx +++ b/ui/component/wunderbarSuggestions/view.jsx @@ -64,7 +64,11 @@ export default function WunderBarSuggestions(props: Props) { customSelectAction, } = props; const inputRef: ElementRef = React.useRef(); - const isFocused = inputRef && inputRef.current && inputRef.current === document.activeElement; + const viewResultsRef: ElementRef = React.useRef(); + const exploreTagRef: ElementRef = React.useRef(); + + const isRefFocused = (ref) => ref && ref.current && ref.current === document.activeElement; + const isFocused = isRefFocused(inputRef) || isRefFocused(viewResultsRef) || isRefFocused(exploreTagRef); const { push, @@ -324,10 +328,10 @@ export default function WunderBarSuggestions(props: Props) { {!noBottomLinks && (
-