@vaadin/overlay
Advanced tools
Comparing version 24.4.0-alpha9 to 24.4.0-beta1
{ | ||
"name": "@vaadin/overlay", | ||
"version": "24.4.0-alpha9", | ||
"version": "24.4.0-beta1", | ||
"publishConfig": { | ||
@@ -39,7 +39,7 @@ "access": "public" | ||
"@polymer/polymer": "^3.0.0", | ||
"@vaadin/a11y-base": "24.4.0-alpha9", | ||
"@vaadin/component-base": "24.4.0-alpha9", | ||
"@vaadin/vaadin-lumo-styles": "24.4.0-alpha9", | ||
"@vaadin/vaadin-material-styles": "24.4.0-alpha9", | ||
"@vaadin/vaadin-themable-mixin": "24.4.0-alpha9", | ||
"@vaadin/a11y-base": "24.4.0-beta1", | ||
"@vaadin/component-base": "24.4.0-beta1", | ||
"@vaadin/vaadin-lumo-styles": "24.4.0-beta1", | ||
"@vaadin/vaadin-material-styles": "24.4.0-beta1", | ||
"@vaadin/vaadin-themable-mixin": "24.4.0-beta1", | ||
"lit": "^3.0.0" | ||
@@ -52,3 +52,3 @@ }, | ||
}, | ||
"gitHead": "effb81abe3c6283a6ec620cc0cee56069af58226" | ||
"gitHead": "504787f741d677467ae93ca7cd31d84489366a9c" | ||
} |
@@ -6,3 +6,2 @@ # <vaadin-overlay> | ||
[![npm version](https://badgen.net/npm/v/@vaadin/overlay)](https://www.npmjs.com/package/@vaadin/overlay) | ||
[![Discord](https://img.shields.io/discord/732335336448852018?label=discord)](https://discord.gg/PHmkCKC) | ||
@@ -9,0 +8,0 @@ ## License |
@@ -223,2 +223,3 @@ /** | ||
const rendererChanged = this._oldRenderer !== renderer; | ||
const hasOldRenderer = this._oldRenderer !== undefined; | ||
this._oldRenderer = renderer; | ||
@@ -229,3 +230,3 @@ | ||
if (rendererChanged) { | ||
if (rendererChanged && hasOldRenderer) { | ||
this.innerHTML = ''; | ||
@@ -232,0 +233,0 @@ // Whenever a Lit-based renderer is used, it assigns a Lit part to the node it was rendered into. |
@@ -149,3 +149,4 @@ /** | ||
__addUpdatePositionEventListeners() { | ||
window.addEventListener('resize', this._updatePosition); | ||
window.visualViewport.addEventListener('resize', this._updatePosition); | ||
window.visualViewport.addEventListener('scroll', this.__onScroll, true); | ||
@@ -160,3 +161,4 @@ this.__positionTargetAncestorRootNodes = getAncestorRootNodes(this.positionTarget); | ||
__removeUpdatePositionEventListeners() { | ||
window.removeEventListener('resize', this._updatePosition); | ||
window.visualViewport.removeEventListener('resize', this._updatePosition); | ||
window.visualViewport.removeEventListener('scroll', this.__onScroll, true); | ||
@@ -209,5 +211,7 @@ if (this.__positionTargetAncestorRootNodes) { | ||
// If the scroll event occurred inside the overlay, ignore it. | ||
if (!this.contains(e.target)) { | ||
this._updatePosition(); | ||
if (e.target instanceof Node && this.contains(e.target)) { | ||
return; | ||
} | ||
this._updatePosition(); | ||
} | ||
@@ -214,0 +218,0 @@ |
@@ -42,3 +42,4 @@ /** | ||
:host([hidden]), | ||
:host(:not([opened]):not([closing])) { | ||
:host(:not([opened]):not([closing])), | ||
:host(:not([opened]):not([closing])) [part='overlay'] { | ||
display: none !important; | ||
@@ -45,0 +46,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
70498
1554
10
+ Added@vaadin/a11y-base@24.4.0-beta1(transitive)
+ Added@vaadin/component-base@24.4.0-beta1(transitive)
+ Added@vaadin/icon@24.4.0-beta1(transitive)
+ Added@vaadin/vaadin-lumo-styles@24.4.0-beta1(transitive)
+ Added@vaadin/vaadin-material-styles@24.4.0-beta1(transitive)
+ Added@vaadin/vaadin-themable-mixin@24.4.0-beta1(transitive)
- Removed@vaadin/a11y-base@24.4.0-alpha9(transitive)
- Removed@vaadin/component-base@24.4.0-alpha9(transitive)
- Removed@vaadin/icon@24.4.0-alpha9(transitive)
- Removed@vaadin/vaadin-lumo-styles@24.4.0-alpha9(transitive)
- Removed@vaadin/vaadin-material-styles@24.4.0-alpha9(transitive)
- Removed@vaadin/vaadin-themable-mixin@24.4.0-alpha9(transitive)