-
Notifications
You must be signed in to change notification settings - Fork 87
Open
Labels
Description
Describe your motivation
In some use cases, you want Popover to close when any other overlay opens (e.g. DatePicker dropdown, another Popover, Dialog). Rich tooltips opened on hover are a good example of this (it seems that mouseout closing isn't reliably triggered in this scenario, which exacerbates the problem).
Describe the solution you'd like
An opt-in automatic closing of a Popover whenever another overlay opens.
Tooltip has this mechanism by default (
web-components/packages/tooltip/src/vaadin-tooltip-mixin.js
Lines 653 to 662 in 570c0e9
| __onOverlayOpen() { | |
| if (this.manual) { | |
| return; | |
| } | |
| // Close tooltip if another overlay is opened on top of the tooltip's overlay | |
| if (this._overlayElement.opened && !this._overlayElement._last) { | |
| this._stateController.close(true); | |
| } | |
| } |
E.g. setCloseOnOtherOverlay(true) / close-on-other-overlay
Describe alternatives you've considered
No response
Additional context
No response