@vaadin/popover
Advanced tools
Comparing version 24.5.0-alpha3 to 24.5.0-alpha4
{ | ||
"name": "@vaadin/popover", | ||
"version": "24.5.0-alpha3", | ||
"version": "24.5.0-alpha4", | ||
"publishConfig": { | ||
@@ -38,8 +38,8 @@ "access": "public" | ||
"@open-wc/dedupe-mixin": "^1.3.0", | ||
"@vaadin/a11y-base": "24.5.0-alpha3", | ||
"@vaadin/component-base": "24.5.0-alpha3", | ||
"@vaadin/overlay": "24.5.0-alpha3", | ||
"@vaadin/vaadin-lumo-styles": "24.5.0-alpha3", | ||
"@vaadin/vaadin-material-styles": "24.5.0-alpha3", | ||
"@vaadin/vaadin-themable-mixin": "24.5.0-alpha3", | ||
"@vaadin/a11y-base": "24.5.0-alpha4", | ||
"@vaadin/component-base": "24.5.0-alpha4", | ||
"@vaadin/overlay": "24.5.0-alpha4", | ||
"@vaadin/vaadin-lumo-styles": "24.5.0-alpha4", | ||
"@vaadin/vaadin-material-styles": "24.5.0-alpha4", | ||
"@vaadin/vaadin-themable-mixin": "24.5.0-alpha4", | ||
"lit": "^3.0.0" | ||
@@ -56,3 +56,3 @@ }, | ||
], | ||
"gitHead": "9ccd96c77a1568e625fa44f6809e765c0ba91403" | ||
"gitHead": "a2cd3079183a097b793073eeffd3bd59dec2b664" | ||
} |
@@ -15,2 +15,3 @@ /** | ||
import { generateUniqueId } from '@vaadin/component-base/src/unique-id-utils.js'; | ||
import { isLastOverlay } from '@vaadin/overlay/src/vaadin-overlay-stack-mixin.js'; | ||
import { ThemePropertyMixin } from '@vaadin/vaadin-themable-mixin/vaadin-theme-property-mixin.js'; | ||
@@ -504,3 +505,4 @@ import { PopoverPositionMixin } from './vaadin-popover-position-mixin.js'; | ||
!event.composedPath().some((el) => el === this._overlayElement || el === this.target) && | ||
!this.noCloseOnOutsideClick | ||
!this.noCloseOnOutsideClick && | ||
isLastOverlay(this._overlayElement) | ||
) { | ||
@@ -531,3 +533,10 @@ this._openedStateController.close(true); | ||
__onGlobalKeyDown(event) { | ||
if (event.key === 'Escape' && !this.modal && !this.noCloseOnEsc && this.opened && !this.__isManual) { | ||
if ( | ||
event.key === 'Escape' && | ||
!this.modal && | ||
!this.noCloseOnEsc && | ||
this.opened && | ||
!this.__isManual && | ||
isLastOverlay(this._overlayElement) | ||
) { | ||
// Prevent closing parent overlay (e.g. dialog) | ||
@@ -534,0 +543,0 @@ event.stopPropagation(); |
{ | ||
"$schema": "https://json.schemastore.org/web-types", | ||
"name": "@vaadin/popover", | ||
"version": "24.5.0-alpha3", | ||
"version": "24.5.0-alpha4", | ||
"description-markup": "markdown", | ||
@@ -6,0 +6,0 @@ "contributions": { |
{ | ||
"$schema": "https://json.schemastore.org/web-types", | ||
"name": "@vaadin/popover", | ||
"version": "24.5.0-alpha3", | ||
"version": "24.5.0-alpha4", | ||
"description-markup": "markdown", | ||
@@ -6,0 +6,0 @@ "framework": "lit", |
77538
1818
+ Added@vaadin/a11y-base@24.5.0-alpha4(transitive)
+ Added@vaadin/component-base@24.5.0-alpha4(transitive)
+ Added@vaadin/icon@24.5.0-alpha4(transitive)
+ Added@vaadin/overlay@24.5.0-alpha4(transitive)
+ Added@vaadin/vaadin-lumo-styles@24.5.0-alpha4(transitive)
+ Added@vaadin/vaadin-material-styles@24.5.0-alpha4(transitive)
+ Added@vaadin/vaadin-themable-mixin@24.5.0-alpha4(transitive)
- Removed@vaadin/a11y-base@24.5.0-alpha3(transitive)
- Removed@vaadin/component-base@24.5.0-alpha3(transitive)
- Removed@vaadin/icon@24.5.0-alpha3(transitive)
- Removed@vaadin/overlay@24.5.0-alpha3(transitive)
- Removed@vaadin/vaadin-lumo-styles@24.5.0-alpha3(transitive)
- Removed@vaadin/vaadin-material-styles@24.5.0-alpha3(transitive)
- Removed@vaadin/vaadin-themable-mixin@24.5.0-alpha3(transitive)