diff --git a/applications/client/src/views/Campaign/Explore/Panels/QuickMeta.tsx b/applications/client/src/views/Campaign/Explore/Panels/QuickMeta.tsx index daf66ac3..e2592819 100644 --- a/applications/client/src/views/Campaign/Explore/Panels/QuickMeta.tsx +++ b/applications/client/src/views/Campaign/Explore/Panels/QuickMeta.tsx @@ -40,7 +40,7 @@ export const QuickMetaPopoverButtonMenu = observer(({ conten stopPropagation icon={} css={buttonStyle} - content={ e.stopPropagation()}>{content}} + content={{content}} {...props} /> )); diff --git a/packages/ui-styles/src/components/PopoverButton.tsx b/packages/ui-styles/src/components/PopoverButton.tsx index 21301de2..7c6753c0 100644 --- a/packages/ui-styles/src/components/PopoverButton.tsx +++ b/packages/ui-styles/src/components/PopoverButton.tsx @@ -43,6 +43,10 @@ export const PopoverButton = ({ )} content={content} {...popoverProps} + onClose={(e) => { + if (stopPropagation) e.stopPropagation(); + popoverProps?.onClose?.(e); + }} /> ); };