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.
visible
1 parent 8278539 commit 727dcb6Copy full SHA for 727dcb6
src/components/sidebar/CSidebar.ts
@@ -83,7 +83,7 @@ const CSidebar = defineComponent({
83
84
const callback = (entries: IntersectionObserverEntry[]) => {
85
entries.forEach((entry) => {
86
- if (entry.isIntersecting !== props.visible) {
+ if (entry.isIntersecting !== props.visible || typeof visible.value === 'undefined') {
87
visible.value = entry.isIntersecting
88
emit('visible-change', visible.value)
89
}
0 commit comments