Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4f3979a

Browse filesBrowse files
fix(CNavGroup): set default height state to 0
1 parent 5612934 commit 4f3979a
Copy full SHA for 4f3979a

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎packages/coreui-react/src/components/nav/CNavGroup.tsx

Copy file name to clipboardExpand all lines: packages/coreui-react/src/components/nav/CNavGroup.tsx
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export const CNavGroup: PolymorphicRefForwardingComponent<'li', CNavGroupProps>
5858
HTMLDivElement | HTMLLIElement,
5959
CNavGroupProps
6060
>(({ children, as: Component = 'li', className, compact, idx, toggler, visible, ...rest }, ref) => {
61-
const [height, setHeight] = useState<number | string>()
61+
const [height, setHeight] = useState<number | string>(0)
6262
// eslint-disable-next-line @typescript-eslint/no-explicit-any
6363
const navItemsRef = useRef<any>(null)
6464

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.