From 72528635bd660a8422175deda0ed4d88974eaa84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tina=20M=C3=BCller?= Date: Thu, 15 Aug 2024 12:47:31 +0200 Subject: [PATCH] Immediately search when clearing search field The 'search' event is triggered when clicking on the little x in a search box. Issue: https://progress.opensuse.org/issues/162218 --- assets/javascripts/test_result.js | 1 + 1 file changed, 1 insertion(+) diff --git a/assets/javascripts/test_result.js b/assets/javascripts/test_result.js index 89a4b1a5370..d48069bc235 100644 --- a/assets/javascripts/test_result.js +++ b/assets/javascripts/test_result.js @@ -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) {