@vaadin/overlay 24.3.0-beta2 → 24.3.0-rc2

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.3.0-beta2",
3
+ "version": "24.3.0-rc2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -36,11 +36,11 @@
36
36
  "dependencies": {
37
37
  "@open-wc/dedupe-mixin": "^1.3.0",
38
38
  "@polymer/polymer": "^3.0.0",
39
- "@vaadin/a11y-base": "24.3.0-beta2",
40
- "@vaadin/component-base": "24.3.0-beta2",
41
- "@vaadin/vaadin-lumo-styles": "24.3.0-beta2",
42
- "@vaadin/vaadin-material-styles": "24.3.0-beta2",
43
- "@vaadin/vaadin-themable-mixin": "24.3.0-beta2"
39
+ "@vaadin/a11y-base": "24.3.0-rc2",
40
+ "@vaadin/component-base": "24.3.0-rc2",
41
+ "@vaadin/vaadin-lumo-styles": "24.3.0-rc2",
42
+ "@vaadin/vaadin-material-styles": "24.3.0-rc2",
43
+ "@vaadin/vaadin-themable-mixin": "24.3.0-rc2"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@esm-bundle/chai": "^4.3.4",
@@ -48,5 +48,5 @@
48
48
  "lit": "^3.0.0",
49
49
  "sinon": "^13.0.2"
50
50
  },
51
- "gitHead": "0bbfb24cb8dcd6e1dca8ecf2269635efac53e4d0"
51
+ "gitHead": "4a393bc5d4706745d3ccca73632e6b1e207cc830"
52
52
  }
@@ -118,6 +118,14 @@ export const OverlayMixin = (superClass) =>
118
118
  // and <vaadin-context-menu>).
119
119
  this.addEventListener('click', () => {});
120
120
  this.$.backdrop.addEventListener('click', () => {});
121
+
122
+ this.addEventListener('mouseup', () => {
123
+ // In Chrome, focus moves to body on overlay content mousedown
124
+ // See https://github.com/vaadin/flow-components/issues/5507
125
+ if (document.activeElement === document.body && this.$.overlay.getAttribute('tabindex') === '0') {
126
+ this.$.overlay.focus();
127
+ }
128
+ });
121
129
  }
122
130
 
123
131
  /** @protected */
@@ -41,6 +41,7 @@ export const PositionMixin = (superClass) =>
41
41
  positionTarget: {
42
42
  type: Object,
43
43
  value: null,
44
+ sync: true,
44
45
  },
45
46
 
46
47
  /**
@@ -56,6 +57,7 @@ export const PositionMixin = (superClass) =>
56
57
  horizontalAlign: {
57
58
  type: String,
58
59
  value: 'start',
60
+ sync: true,
59
61
  },
60
62
 
61
63
  /**
@@ -70,6 +72,7 @@ export const PositionMixin = (superClass) =>
70
72
  verticalAlign: {
71
73
  type: String,
72
74
  value: 'top',
75
+ sync: true,
73
76
  },
74
77
 
75
78
  /**
@@ -81,6 +84,7 @@ export const PositionMixin = (superClass) =>
81
84
  noHorizontalOverlap: {
82
85
  type: Boolean,
83
86
  value: false,
87
+ sync: true,
84
88
  },
85
89
 
86
90
  /**
@@ -92,6 +96,7 @@ export const PositionMixin = (superClass) =>
92
96
  noVerticalOverlap: {
93
97
  type: Boolean,
94
98
  value: false,
99
+ sync: true,
95
100
  },
96
101
 
97
102
  /**
@@ -105,6 +110,7 @@ export const PositionMixin = (superClass) =>
105
110
  requiredVerticalSpace: {
106
111
  type: Number,
107
112
  value: 0,
113
+ sync: true,
108
114
  },
109
115
  };
110
116
  }