Skip to content

Commit

Permalink
Immediately search when clearing search field
Browse files Browse the repository at this point in the history
The 'search' event is triggered when clicking on the little x in a search box.

Issue: https://progress.opensuse.org/issues/162218
  • Loading branch information
perlpunk committed Aug 15, 2024
1 parent ab9f78b commit 7252863
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions assets/javascripts/test_result.js
Original file line number Diff line number Diff line change
Expand Up @@ -685,6 +685,7 @@ window.onload = function () {
const filter = filterLogLines.bind(null, searchBox);
searchBox.addEventListener('keyup', delay(filter), 1000);
searchBox.addEventListener('change', filter, false);
searchBox.addEventListener('search', filter, false);
};

function displaySearchInfo(text) {
Expand Down

0 comments on commit 7252863

Please sign in to comment.