We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d734a73 commit 5b5bb4eCopy full SHA for 5b5bb4e
src/components/sidebar/CSidebarNav.ts
@@ -28,8 +28,8 @@ const CSidebarNav = defineComponent({
28
// @ts-expect-error name is defined in component
29
if (vnode.type.name === 'CNavGroup') {
30
return h(vnode, {
31
- onVisibleChange: (visible: boolean) => handleVisibleChange(visible, index),
32
- ...(visibleGroup.value && { visible: isVisible(index) }),
+ onVisibleChange: (visible: boolean) => handleVisibleChange(visible, index + 1),
+ ...(visibleGroup.value && { visible: isVisible(index + 1) }),
33
})
34
}
35
return vnode
0 commit comments