File tree 2 files changed +3
-3
lines changed 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ const CNavGroup = defineComponent({
12
12
*/
13
13
visible : {
14
14
type : Boolean ,
15
- default : false ,
15
+ default : undefined ,
16
16
required : false ,
17
17
} ,
18
18
} ,
@@ -127,7 +127,7 @@ const CNavGroup = defineComponent({
127
127
return h ( vnode , {
128
128
onVisibleChange : ( visible : boolean ) =>
129
129
handleVisibleChange ( visible , index ) ,
130
- visible : isVisible ( index ) ,
130
+ ... ( visibleGroup . value && { visible : isVisible ( index ) } ) ,
131
131
} )
132
132
}
133
133
return vnode
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ const CSidebarNav = defineComponent({
29
29
if ( vnode . type . name === 'CNavGroup' ) {
30
30
return h ( vnode , {
31
31
onVisibleChange : ( visible : boolean ) => handleVisibleChange ( visible , index ) ,
32
- visible : isVisible ( index ) ,
32
+ ... ( visibleGroup . value && { visible : isVisible ( index ) } ) ,
33
33
} )
34
34
}
35
35
return vnode
You can’t perform that action at this time.
0 commit comments