You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to use the popover in controlled mode.
Although simple cases (handle state from inside popover) work, there is no idiomatic way to close the popover by clicking on the overlay.
Adding a onOverlayClick would work for me.
I also noted that closing from the overlay in uncontrolled mode does not trigger the onClose event, as you're only toggling the internal state of the popover in this case
The text was updated successfully, but these errors were encountered:
I ran into this same issue for a project I'm working on, where I am using a managed Popover but the overlay does not responds to click events. I put a fork/branch over here that works for me:
The callback handlePopoverOpenStateChange changes isPopoverOpen to whatever flag happens to be.
In the case of clicking on the Overlay, its onClose calls the parent popover's onClose, which in turn calls updatePopoverState to update the managing/controlling component.
I would like to use the popover in controlled mode.
Although simple cases (handle state from inside popover) work, there is no idiomatic way to close the popover by clicking on the overlay.
Adding a
onOverlayClick
would work for me.I also noted that closing from the overlay in uncontrolled mode does not trigger the
onClose
event, as you're only toggling the internal state of the popover in this caseThe text was updated successfully, but these errors were encountered: