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 61b3bd6 commit aff6313Copy full SHA for aff6313
docs/.vitepress/theme/glare-card/glare-card.vue
@@ -75,7 +75,7 @@
75
76
<script setup lang="ts">
77
import { motion, cubicBezier, AnimatePresence } from 'motion-v'
78
-import { watch } from 'vue'
+import { onBeforeUnmount, watch } from 'vue'
79
80
import Card from './card.vue'
81
@@ -90,4 +90,9 @@ watch(model, (value) => {
90
document.body.classList.remove('overflow-hidden')
91
}
92
}, { immediate: true })
93
+
94
+onBeforeUnmount(() => {
95
+ document.documentElement.classList.remove('overflow-hidden')
96
+ document.body.classList.remove('overflow-hidden')
97
+})
98
</script>
0 commit comments