Skip to content

Commit c955290

Browse files
committed
refactor(CSidebar): update visible prop behavior
1 parent 56492de commit c955290

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/sidebar/CSidebar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ export const CSidebar = forwardRef<HTMLDivElement, CSidebarProps>(
151151
[`sidebar-${position}`]: position,
152152
[`sidebar-self-hiding${typeof selfHiding !== 'boolean' && '-' + selfHiding}`]: selfHiding,
153153
'sidebar-narrow-unfoldable': unfoldable,
154-
show: _visible,
155-
hide: !_visible,
154+
show: _visible === true,
155+
hide: _visible === false,
156156
},
157157
className,
158158
)

0 commit comments

Comments
 (0)