Skip to content

Commit

Permalink
fix(RHINENG-8385): Unblock opening menu by toggle click
Browse files Browse the repository at this point in the history
  • Loading branch information
LightOfHeaven1994 committed Oct 30, 2024
1 parent 885695a commit 32398a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/components/src/ConditionalFilter/GroupFilter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@ const GroupFilter: React.FunctionComponent<GroupFilterProps> = (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);
};

Expand Down

0 comments on commit 32398a2

Please sign in to comment.