fix(theme): close sidebar on resize (closes #5145)

pull/5151/head
Divyansh Singh 6 months ago
parent ca1e875129
commit 17696c358b

@ -107,6 +107,7 @@ export function registerWatchers({ closeSidebar }: RegisterWatchersOptions) {
const route = useRoute() const route = useRoute()
watch(() => route.path, closeSidebar) watch(() => route.path, closeSidebar)
watch(is960, closeSidebar)
useCloseSidebarOnEscape(closeSidebar) useCloseSidebarOnEscape(closeSidebar)
} }

Loading…
Cancel
Save