[Popover] Unable to remove overlay from popover
See original GitHub issue- The issue is present in the latest release.
- I have searched the issues of this repository and believe that this is not a duplicate.
Current Behavior 😯
I’m trying to add the ability to add other functionality to occur before the popover closes. The Popover component adds an overlay which detects any clicks then triggers the setAnchorEl
method (updates the state to null
.
I have a close button which I want to perform some behavior prior to the popover closing.
Expected Behavior 🤔
I expect there to be some flag on the popover api like: hideOverlay
, similar to the Menu component. This would allow me to trigger the handleClick related to the close button
before setting anchorEl
to null
.
Steps to Reproduce 🕹
Here is a basic repl which simply console.logs
the order of operations.
Steps:
- open popover
- click close button
- notice the order in which the logs are performed
Context 🔦
Your Environment 🌎
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (6 by maintainers)
Top Results From Across the Web
[Popover] Unable to remove overlay from popover #26362
I'm trying to add the ability to add other functionality to occur before the popover closes. The Popover component adds an overlay which...
Read more >React Material UI: How to prevent the Popover component ...
I am using Menu component to show up a menu when user hovers on an element. However, I noticed that when the menu...
Read more >lightning:overlayLibrary popover styling - missing nubbin and ...
The nubbin in my popover is showing a white diamond instead of a blue arrow inspite of specifying 'slds-nubbin_left' class in cssClass attribute ......
Read more >How to Dismiss a React-Bootstrap Popover on Click Outside
Another method to dismiss the popover is by using a different trigger event. You can use the hover or focus trigger instead of...
Read more >Popovers - Presentation - Human Interface Guidelines - Design
A popover is a transient view that appears above other content onscreen when people click or tap a control or interactive area.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
What field do you mean? Could you highlight in your codesandbox what the “field” and its value is?
@maksimgm Any solution?