mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03: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…
Reference in New Issue
Block a user