[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:
Ivan Gabaldon
2025-12-07 13:26:01 +00:00
committed by GitHub
parent b5a1a092f1
commit 74ec225ad1
7 changed files with 10 additions and 8 deletions

View File

@@ -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) {