From 8f97b136f2d5f4ad8692ca0e5cd84bb7e119be9b Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Tue, 5 Mar 2024 14:55:03 -0600 Subject: [PATCH] Improve Group matching --- src/components/Menu/index.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/Menu/index.tsx b/src/components/Menu/index.tsx index ab8266070f..ee96a5667e 100644 --- a/src/components/Menu/index.tsx +++ b/src/components/Menu/index.tsx @@ -166,9 +166,7 @@ export function Group({children, style}: GroupProps) { style, ]}> {flattenReactChildren(children).map((child, i) => { - // ignore null children, like Dividers - // @ts-ignore - return React.isValidElement(child) && child.props?.children ? ( + return React.isValidElement(child) && child.type === Item ? ( {i > 0 ? (