@vaadin/overlay 24.2.4 → 24.2.5

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.2.4",
3
+ "version": "24.2.5",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -38,11 +38,11 @@
38
38
  "dependencies": {
39
39
  "@open-wc/dedupe-mixin": "^1.3.0",
40
40
  "@polymer/polymer": "^3.0.0",
41
- "@vaadin/a11y-base": "~24.2.4",
42
- "@vaadin/component-base": "~24.2.4",
43
- "@vaadin/vaadin-lumo-styles": "~24.2.4",
44
- "@vaadin/vaadin-material-styles": "~24.2.4",
45
- "@vaadin/vaadin-themable-mixin": "~24.2.4"
41
+ "@vaadin/a11y-base": "~24.2.5",
42
+ "@vaadin/component-base": "~24.2.5",
43
+ "@vaadin/vaadin-lumo-styles": "~24.2.5",
44
+ "@vaadin/vaadin-material-styles": "~24.2.5",
45
+ "@vaadin/vaadin-themable-mixin": "~24.2.5"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@esm-bundle/chai": "^4.3.4",
@@ -50,5 +50,5 @@
50
50
  "lit": "^2.0.0",
51
51
  "sinon": "^13.0.2"
52
52
  },
53
- "gitHead": "885416de13069b7409ac90c1b323a58ac87da6ce"
53
+ "gitHead": "f1c916061f1b117fa9c597d3067e7b96563f99a7"
54
54
  }
@@ -4,7 +4,6 @@
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import { afterNextRender } from '@polymer/polymer/lib/utils/render-status.js';
7
- import { getClosestFocusable } from '@vaadin/a11y-base/src/focus-utils.js';
8
7
  import { isIOS } from '@vaadin/component-base/src/browser-utils.js';
9
8
  import { OverlayFocusMixin } from './vaadin-overlay-focus-mixin.js';
10
9
  import { OverlayStackMixin } from './vaadin-overlay-stack-mixin.js';
@@ -119,10 +118,6 @@ export const OverlayMixin = (superClass) =>
119
118
  // and <vaadin-context-menu>).
120
119
  this.addEventListener('click', () => {});
121
120
  this.$.backdrop.addEventListener('click', () => {});
122
-
123
- this.addEventListener('mousedown', (e) => {
124
- this._onMouseDown(e);
125
- });
126
121
  }
127
122
 
128
123
  /** @protected */
@@ -474,14 +469,4 @@ export const OverlayMixin = (superClass) =>
474
469
  }
475
470
  }
476
471
  }
477
-
478
- /** @private */
479
- _onMouseDown(event) {
480
- const target = event.target;
481
- const focusable = getClosestFocusable(target.focusElement || target);
482
- if (focusable) {
483
- event.preventDefault();
484
- focusable.focus();
485
- }
486
- }
487
472
  };