8000 fix(CSidebarNav): The first group doesn't open on first click. · rallis/coreui-vue@5b5bb4e · GitHub
[go: up one dir, main page]

Skip to content

Commit 5b5bb4e

Browse files
committed
fix(CSidebarNav): The first group doesn't open on first click.
1 parent d734a73 commit 5b5bb4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/sidebar/CSidebarNav.ts

Lines changed: 2 additions & 2 deletions
< 52B5 td data-grid-cell-id="diff-98f211733cf77e47edb7ceecd37cae4376a60ca36d77f8e4bcaab56657ef5117-32-31-2" data-line-anchor="diff-98f211733cf77e47edb7ceecd37cae4376a60ca36d77f8e4bcaab56657ef5117R31" data-selected="false" role="gridcell" style="background-color:var(--diffBlob-additionLine-bgColor, var(--diffBlob-addition-bgColor-line));padding-right:24px" tabindex="-1" valign="top" class="focusable-grid-cell diff-text-cell right-side-diff-cell left-side">+
onVisibleChange: (visible: boolean) => handleVisibleChange(visible, index + 1),
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ const CSidebarNav = defineComponent({
2828
// @ts-expect-error name is defined in component
2929
if (vnode.type.name === 'CNavGroup') {
3030
return h(vnode, {
31-
onVisibleChange: (visible: boolean) => handleVisibleChange(visible, index),
32-
...(visibleGroup.value && { visible: isVisible(index) }),
31
32+
...(visibleGroup.value && { visible: isVisible(index + 1) }),
3333
})
3434
}
3535
return vnode

0 commit comments

Comments
 (0)
0