diff --git a/client/src/ui/search-input.js b/client/src/ui/search-input.js index a5ea8ef5de2..b8106b8143c 100644 --- a/client/src/ui/search-input.js +++ b/client/src/ui/search-input.js @@ -37,7 +37,7 @@ function searchInput(parentNode, options) { // .................................................................... input rendering and events // visually clear the search, trigger an event, and call the callback function clearSearchInput(event) { - var $input = $(this).parent().children("input"); + var $input = $(this).closest(".search-control").children("input"); $input.val("").trigger("searchInput.clear").blur(); options.onclear(); }