From cf154193f7a3bc073d83360144ec0a35ef686fc5 Mon Sep 17 00:00:00 2001 From: Titani Date: Wed, 20 Nov 2024 11:50:32 -0500 Subject: [PATCH] Updates form review comments --- packages/react-core/src/components/Toolbar/ToolbarFilter.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/react-core/src/components/Toolbar/ToolbarFilter.tsx b/packages/react-core/src/components/Toolbar/ToolbarFilter.tsx index c4fdceb45f9..e15896e93f1 100644 --- a/packages/react-core/src/components/Toolbar/ToolbarFilter.tsx +++ b/packages/react-core/src/components/Toolbar/ToolbarFilter.tsx @@ -134,9 +134,7 @@ class ToolbarFilter extends React.Component {showToolbarItem && {children}} - {chipGroupContentRef && - chipGroupContentRef?.current !== null && - chipGroupContentRef.current?.firstElementChild !== null && + {chipGroupContentRef?.current?.firstElementChild && ReactDOM.createPortal(chipGroup, chipGroupContentRef.current.firstElementChild)} );