From 32398a29fe9e658eb41825b49534b997bfc42d1e Mon Sep 17 00:00:00 2001 From: eshamard Date: Wed, 30 Oct 2024 12:29:22 +0100 Subject: [PATCH] fix(RHINENG-8385): Unblock opening menu by toggle click --- packages/components/src/ConditionalFilter/GroupFilter.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/components/src/ConditionalFilter/GroupFilter.tsx b/packages/components/src/ConditionalFilter/GroupFilter.tsx index 1fb38b237..b930a73c1 100644 --- a/packages/components/src/ConditionalFilter/GroupFilter.tsx +++ b/packages/components/src/ConditionalFilter/GroupFilter.tsx @@ -160,9 +160,9 @@ const GroupFilter: React.FunctionComponent = (props) => { const clickedInsideInput = inputRef.current?.contains(event.target as Node); const clickedInsideMenu = menuRef.current?.contains(event.target as Node); + const clickedToggle = toggleRef.current?.contains(event.target as Node); - if (clickedInsideInput || clickedInsideMenu) return; - + if (clickedInsideInput || clickedInsideMenu || clickedToggle) return; setIsOpen(false); };