[bugfix] clear the notfound message on new search

This commit is contained in:
2026-03-08 00:03:25 -05:00
parent 4eed1869a6
commit f5fcd7b3e7
2 changed files with 2 additions and 21 deletions

View File

@@ -14,6 +14,8 @@ import { Show } from '@clerk/astro/components'
}
};
const beforeSearch = (e) => {
const notfound = document.getElementById('notfound');
if (notfound) notfound.innerHTML = '';
const start = document.querySelector('#start');
if (start) {
start.value = '0';