diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2024-08-11 11:23:07 +0200 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarIT.de> | 2024-08-15 18:58:28 +0200 |
commit | 45f03f1902367767ebbf98221f9ca229ada5c666 (patch) | |
tree | 5a3468ab9a004f60eb3f190505bf856075ed50cc /searx/static/themes | |
parent | 8e985aea88bfdae601518db2abe2fdded127b463 (diff) | |
download | searxng-45f03f1902367767ebbf98221f9ca229ada5c666.tar.gz searxng-45f03f1902367767ebbf98221f9ca229ada5c666.zip |
[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 <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/static/themes')
-rw-r--r-- | searx/static/themes/simple/src/js/main/search.js | 2 |
1 files changed, 1 insertions, 1 deletions
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 () { |