mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-22 19:46:23 +00:00
Fix search bar after navigate (#424)
This commit is contained in:
parent
ad4145fb10
commit
c91e62c376
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue