Fixes #15968: Avoid resizing quick search field to display clear button

This commit is contained in:
Jeremy Stretch
2024-05-08 14:49:14 -04:00
parent f40fb6a707
commit e055e0a222
4 changed files with 5 additions and 5 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -10,9 +10,9 @@ function quickSearchEventHandler(event: Event): void {
const clearbtn = document.getElementById("quicksearch_clear") as HTMLAnchorElement;
if (isTruthy(clearbtn)) {
if (quicksearch.value === "") {
clearbtn.classList.add("d-none");
clearbtn.classList.add("invisible");
} else {
clearbtn.classList.remove("d-none");
clearbtn.classList.remove("invisible");
}
}
}