diff --git a/packages/coreui-react/src/components/nav/CNavGroup.tsx b/packages/coreui-react/src/components/nav/CNavGroup.tsx index 776bf104..5a7d891e 100644 --- a/packages/coreui-react/src/components/nav/CNavGroup.tsx +++ b/packages/coreui-react/src/components/nav/CNavGroup.tsx @@ -58,7 +58,7 @@ export const CNavGroup: PolymorphicRefForwardingComponent<'li', CNavGroupProps> HTMLDivElement | HTMLLIElement, CNavGroupProps >(({ children, as: Component = 'li', className, compact, idx, toggler, visible, ...rest }, ref) => { - const [height, setHeight] = useState() + const [height, setHeight] = useState(0) // eslint-disable-next-line @typescript-eslint/no-explicit-any const navItemsRef = useRef(null)