@vaadin/overlay 23.4.0-alpha1 → 23.4.0-alpha3
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 +9 -9
- package/src/vaadin-overlay.js +8 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/overlay",
|
|
3
|
-
"version": "23.4.0-
|
|
3
|
+
"version": "23.4.0-alpha3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -36,20 +36,20 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
38
38
|
"@polymer/polymer": "^3.0.0",
|
|
39
|
-
"@vaadin/component-base": "23.4.0-
|
|
40
|
-
"@vaadin/vaadin-lumo-styles": "23.4.0-
|
|
41
|
-
"@vaadin/vaadin-material-styles": "23.4.0-
|
|
42
|
-
"@vaadin/vaadin-themable-mixin": "23.4.0-
|
|
39
|
+
"@vaadin/component-base": "23.4.0-alpha3",
|
|
40
|
+
"@vaadin/vaadin-lumo-styles": "23.4.0-alpha3",
|
|
41
|
+
"@vaadin/vaadin-material-styles": "23.4.0-alpha3",
|
|
42
|
+
"@vaadin/vaadin-themable-mixin": "23.4.0-alpha3"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@esm-bundle/chai": "^4.3.4",
|
|
46
46
|
"@polymer/iron-overlay-behavior": "^3.0.0",
|
|
47
|
-
"@vaadin/button": "23.4.0-
|
|
48
|
-
"@vaadin/radio-group": "23.4.0-
|
|
47
|
+
"@vaadin/button": "23.4.0-alpha3",
|
|
48
|
+
"@vaadin/radio-group": "23.4.0-alpha3",
|
|
49
49
|
"@vaadin/testing-helpers": "^0.3.2",
|
|
50
|
-
"@vaadin/text-field": "23.4.0-
|
|
50
|
+
"@vaadin/text-field": "23.4.0-alpha3",
|
|
51
51
|
"lit": "^2.0.0",
|
|
52
52
|
"sinon": "^13.0.2"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "2336e451b1971dfb2dc4b601e11d05cafdb91516"
|
|
55
55
|
}
|
package/src/vaadin-overlay.js
CHANGED
|
@@ -375,6 +375,14 @@ class Overlay extends ThemableMixin(DirMixin(ControllerMixin(PolymerElement))) {
|
|
|
375
375
|
this.addEventListener('click', () => {});
|
|
376
376
|
this.$.backdrop.addEventListener('click', () => {});
|
|
377
377
|
|
|
378
|
+
this.addEventListener('mouseup', () => {
|
|
379
|
+
// In Chrome, focus moves to body on overlay content mousedown
|
|
380
|
+
// See https://github.com/vaadin/flow-components/issues/5507
|
|
381
|
+
if (document.activeElement === document.body && this.$.overlay.getAttribute('tabindex') === '0') {
|
|
382
|
+
this.$.overlay.focus();
|
|
383
|
+
}
|
|
384
|
+
});
|
|
385
|
+
|
|
378
386
|
this.addController(this.__focusTrapController);
|
|
379
387
|
}
|
|
380
388
|
|