mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2025-01-18 17:04:09 +01:00
Close drawer and search on hash change
This commit is contained in:
parent
4e76da9647
commit
18c8c4c2ba
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -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 = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user