CPopover Buttons

Hi there, I am using v3.4.4 React. Wondering if there is a way to make popovers have buttons that can trigger a function.

Currently I have trigger=“click” for the popover, and when I try to click on an embedded button in the popover content, the popover disappears rather than triggering the desired function. This is expected functionality, but is there a work around?
Thanks