Skip to content

Commit

Permalink
fix(@clayui/nav): Adjust condition, to avoid set Boolean values in cl…
Browse files Browse the repository at this point in the history
…assName property

Fixes: #4120
  • Loading branch information
kevenleone committed Jun 9, 2021
1 parent d94779f commit e3af0e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/clay-nav/src/Vertical.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ function Item({

{subItems && (
<CSSTransition
className={!expanded && 'collapse'}
className={expanded ? undefined : 'collapse'}
classNames={{
enter: 'collapsing',
enterActive: `show`,
Expand Down

0 comments on commit e3af0e3

Please sign in to comment.