We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aff6313 commit fa84f25Copy full SHA for fa84f25
docs/.vitepress/theme/glare-card/glare-card.vue
@@ -82,6 +82,8 @@ import Card from './card.vue'
82
const model = defineModel({ default: false })
83
84
watch(model, (value) => {
85
+ if (typeof window === 'undefined') return
86
+
87
if (value) {
88
document.documentElement.classList.add('overflow-hidden')
89
document.body.classList.add('overflow-hidden')
@@ -92,6 +94,8 @@ watch(model, (value) => {
92
94
}, { immediate: true })
93
95
96
onBeforeUnmount(() => {
97
98
99
document.documentElement.classList.remove('overflow-hidden')
100
document.body.classList.remove('overflow-hidden')
101
})
0 commit comments