Fix search bar after navigate (#424)

This commit is contained in:
Ben Schlegel 2023-08-27 02:19:45 +02:00 committed by GitHub
parent ad4145fb10
commit c91e62c376
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -128,6 +128,7 @@ document.addEventListener("nav", async (e: unknown) => {
button.addEventListener("click", () => {
const targ = resolveRelative(currentSlug, slug)
window.spaNavigate(new URL(targ, window.location.toString()))
hideSearch()
})
return button
}