Fix search bar after navigate (#424)

This commit is contained in:
Ben Schlegel authored and GitHub committed 2023-08-26 17:19:45 -07:00
1 parent ad4145fb10
commit c91e62c376
1 file changed
+1
@@ -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
}