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 0688a2415f
commit 3233d5b08a

View File

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