mirror of
https://github.com/searxng/searxng.git
synced 2025-12-22 19:50:00 +00:00
[fix] themes: clear search input (#5540)
* [fix] themes: clear search input Closes https://github.com/searxng/searxng/issues/5539 * [fix] themes: rebuild static
This commit is contained in:
@@ -39,9 +39,11 @@ listen("input", searchInput, () => {
|
||||
searchReset.classList.toggle("empty", searchInput.value.length === 0);
|
||||
});
|
||||
|
||||
listen("click", searchReset, () => {
|
||||
searchReset.classList.add("empty");
|
||||
listen("click", searchReset, (event: MouseEvent) => {
|
||||
event.preventDefault();
|
||||
searchInput.value = "";
|
||||
searchInput.focus();
|
||||
searchReset.classList.add("empty");
|
||||
});
|
||||
|
||||
for (const button of categoryButtons) {
|
||||
|
||||
Reference in New Issue
Block a user