Fix clearing of search inputs (slightly more robust selector usage

resolves this and will hopefully be more durable to changes moving
forward)
This commit is contained in:
Dannon Baker
2021-03-02 14:04:43 -05:00
parent 7c5a65f4c4
commit a7dca34e31
+1 -1
View File
@@ -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();
}