From aa8d3a0c6cc5bf0879d802fb3b3c4cc1f09a365d Mon Sep 17 00:00:00 2001 From: Evy Kassirer Date: Wed, 27 Sep 2023 10:24:55 -0700 Subject: [PATCH] search: Always select search bar text when initiating search. This reverts part of cb04ae1f958ce4c5adc03e00cdb66995bdc5a892 that nobody understands the purpose of, and fixes this case. --- web/src/search.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/web/src/search.js b/web/src/search.js index 518f72e1a3..f60079fbe0 100644 --- a/web/src/search.js +++ b/web/src/search.js @@ -183,13 +183,7 @@ export function initiate_search() { // Open the typeahead after opening the search bar, so that we don't // get a weird visual jump where the typeahead results are narrow // before the search bar expands and then wider it expands. - if (!$("#searchbox .dropdown-menu").is(":visible")) { - $("#search_query").typeahead("lookup"); - } - - if (!search_bar_already_open) { - $("#search_query").typeahead("lookup").trigger("select"); - } + $("#search_query").typeahead("lookup").trigger("select"); } export function clear_search_form() {