[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>
This commit is contained in:
Markus Heiser 2024-08-11 11:23:07 +02:00 committed by Markus Heiser
parent 8e985aea88
commit 45f03f1902

View file

@ -32,7 +32,7 @@
updateClearButton(); updateClearButton();
ev.preventDefault(); ev.preventDefault();
}); });
qinput.addEventListener('keyup', updateClearButton, false); qinput.addEventListener('input', updateClearButton, false);
} }
searxng.ready(function () { searxng.ready(function () {