Skip to content
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.

Close the QuickMetaPopoverButtonMenu when ToggleHiddenDialog is closed #110

Merged
merged 2 commits into from
Mar 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const QuickMetaPopoverButtonMenu = observer<PopoverButtonProps>(({ conten
stopPropagation
icon={<CarbonIcon icon={OverflowMenuVertical16} />}
css={buttonStyle}
content={<Menu onClick={(e) => e.stopPropagation()}>{content}</Menu>}
content={<Menu>{content}</Menu>}
{...props}
/>
));
Expand Down
4 changes: 4 additions & 0 deletions packages/ui-styles/src/components/PopoverButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ export const PopoverButton = ({
)}
content={content}
{...popoverProps}
onClose={(e) => {
if (stopPropagation) e.stopPropagation();
popoverProps?.onClose?.(e);
}}
/>
);
};
Expand Down