@vaadin/overlay 24.8.0-alpha15 → 24.8.0-alpha17

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-alpha15",
3
+ "version": "24.8.0-alpha17",
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-alpha15",
40
- "@vaadin/component-base": "24.8.0-alpha15",
41
- "@vaadin/vaadin-lumo-styles": "24.8.0-alpha15",
42
- "@vaadin/vaadin-material-styles": "24.8.0-alpha15",
43
- "@vaadin/vaadin-themable-mixin": "24.8.0-alpha15",
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",
44
44
  "lit": "^3.0.0"
45
45
  },
46
46
  "devDependencies": {
47
- "@vaadin/chai-plugins": "24.8.0-alpha15",
48
- "@vaadin/test-runner-commands": "24.8.0-alpha15",
47
+ "@vaadin/chai-plugins": "24.8.0-alpha17",
48
+ "@vaadin/test-runner-commands": "24.8.0-alpha17",
49
49
  "@vaadin/testing-helpers": "^1.1.0",
50
50
  "sinon": "^18.0.0"
51
51
  },
52
- "gitHead": "d2d0d1bb5efa3a439e568c1693d2fee3cc18fc67"
52
+ "gitHead": "bf06d4d774049e0d19a3f008273864df15e085f6"
53
53
  }
@@ -3,7 +3,6 @@
3
3
  * Copyright (c) 2017 - 2025 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
- import { afterNextRender } from '@polymer/polymer/lib/utils/render-status.js';
7
6
  import { isIOS } from '@vaadin/component-base/src/browser-utils.js';
8
7
  import { OverlayFocusMixin } from './vaadin-overlay-focus-mixin.js';
9
8
  import { OverlayStackMixin } from './vaadin-overlay-stack-mixin.js';
@@ -266,11 +265,12 @@ export const OverlayMixin = (superClass) =>
266
265
 
267
266
  this._animatedOpening();
268
267
 
269
- afterNextRender(this, () => {
270
- this._trapFocus();
268
+ requestAnimationFrame(() => {
269
+ setTimeout(() => {
270
+ this._trapFocus();
271
271
 
272
- const evt = new CustomEvent('vaadin-overlay-open', { bubbles: true });
273
- this.dispatchEvent(evt);
272
+ this.dispatchEvent(new CustomEvent('vaadin-overlay-open', { bubbles: true }));
273
+ });
274
274
  });
275
275
 
276
276
  document.addEventListener('keydown', this._boundKeydownListener);