Skip to content

Commit

Permalink
fix: sidebar state on initial loading for default layout
Browse files Browse the repository at this point in the history
  • Loading branch information
RVitaly1978 committed Apr 27, 2023
1 parent 8592b23 commit 2137205
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/docs/layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const cookie = useCookie('vuestic-theme')
const { applyPreset } = useColors()
const breakpoints = useBreakpoint()
const isSidebarVisible = ref(!breakpoints.smDown)
const isSidebarVisible = ref(false)
applyPreset(cookie.value || colorMode.preference)
Expand All @@ -42,7 +42,7 @@ watch(() => breakpoints.smDown, (newValue, oldValue) => {
if (!newValue && oldValue) {
isSidebarVisible.value = true
}
})
}, { immediate: true })
const { afterEach } = useRouter()
const { scrollToElement } = useDocsScroll()
Expand Down

0 comments on commit 2137205

Please sign in to comment.