From 45f03f1902367767ebbf98221f9ca229ada5c666 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Sun, 11 Aug 2024 11:23:07 +0200 Subject: [PATCH] [fix] search box: clear button don't appear on mouse-copy You have to copy and paste the query without using the keyboard to replicate the issue. As soon as you press the keyboard the cross appears. [1] - [1] https://github.com/searxng/searxng/issues/3725#issuecomment-2282655272 Reported-by: @Immortality-IMT in [1] Signed-off-by: Markus Heiser --- searx/static/themes/simple/src/js/main/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/static/themes/simple/src/js/main/search.js b/searx/static/themes/simple/src/js/main/search.js index ac1ece535..46756507e 100644 --- a/searx/static/themes/simple/src/js/main/search.js +++ b/searx/static/themes/simple/src/js/main/search.js @@ -32,7 +32,7 @@ updateClearButton(); ev.preventDefault(); }); - qinput.addEventListener('keyup', updateClearButton, false); + qinput.addEventListener('input', updateClearButton, false); } searxng.ready(function () {