Close drawer and search on hash change

This commit is contained in:
squidfunk 2020-02-02 16:51:42 +01:00
parent 4e76da9647
commit 18c8c4c2ba
3 changed files with 8 additions and 2 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -563,6 +563,12 @@ export function initialize(config: unknown) {
})
})
// Close drawer and search on hash change
agent.location.hash$.subscribe(() => {
setToggle(drawer, false)
setToggle(search, false)
})
/* ----------------------------------------------------------------------- */
const state = {