@vaadin/overlay 24.8.0-alpha17 → 24.8.0-alpha18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/overlay",
3
- "version": "24.8.0-alpha17",
3
+ "version": "24.8.0-alpha18",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -36,18 +36,18 @@
36
36
  "dependencies": {
37
37
  "@open-wc/dedupe-mixin": "^1.3.0",
38
38
  "@polymer/polymer": "^3.0.0",
39
- "@vaadin/a11y-base": "24.8.0-alpha17",
40
- "@vaadin/component-base": "24.8.0-alpha17",
41
- "@vaadin/vaadin-lumo-styles": "24.8.0-alpha17",
42
- "@vaadin/vaadin-material-styles": "24.8.0-alpha17",
43
- "@vaadin/vaadin-themable-mixin": "24.8.0-alpha17",
39
+ "@vaadin/a11y-base": "24.8.0-alpha18",
40
+ "@vaadin/component-base": "24.8.0-alpha18",
41
+ "@vaadin/vaadin-lumo-styles": "24.8.0-alpha18",
42
+ "@vaadin/vaadin-material-styles": "24.8.0-alpha18",
43
+ "@vaadin/vaadin-themable-mixin": "24.8.0-alpha18",
44
44
  "lit": "^3.0.0"
45
45
  },
46
46
  "devDependencies": {
47
- "@vaadin/chai-plugins": "24.8.0-alpha17",
48
- "@vaadin/test-runner-commands": "24.8.0-alpha17",
47
+ "@vaadin/chai-plugins": "24.8.0-alpha18",
48
+ "@vaadin/test-runner-commands": "24.8.0-alpha18",
49
49
  "@vaadin/testing-helpers": "^1.1.0",
50
50
  "sinon": "^18.0.0"
51
51
  },
52
- "gitHead": "bf06d4d774049e0d19a3f008273864df15e085f6"
52
+ "gitHead": "57d1022f4c197d3a0100d360017ea37777cb3595"
53
53
  }
@@ -265,7 +265,7 @@ export const OverlayMixin = (superClass) =>
265
265
 
266
266
  this._animatedOpening();
267
267
 
268
- requestAnimationFrame(() => {
268
+ this.__scheduledOpen = requestAnimationFrame(() => {
269
269
  setTimeout(() => {
270
270
  this._trapFocus();
271
271
 
@@ -279,6 +279,11 @@ export const OverlayMixin = (superClass) =>
279
279
  this._addGlobalListeners();
280
280
  }
281
281
  } else if (wasOpened) {
282
+ if (this.__scheduledOpen) {
283
+ cancelAnimationFrame(this.__scheduledOpen);
284
+ this.__scheduledOpen = null;
285
+ }
286
+
282
287
  this._resetFocus();
283
288
 
284
289
  this._animatedClosing();