@vaadin/component-base 24.0.9 → 24.0.11
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/component-base",
|
|
3
|
-
"version": "24.0.
|
|
3
|
+
"version": "24.0.11",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"@vaadin/testing-helpers": "^0.4.0",
|
|
43
43
|
"sinon": "^13.0.2"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "f53b1ae603a55a4fb02ce4f72f0fb314e1a1c95f"
|
|
46
46
|
}
|
|
@@ -166,7 +166,7 @@ export const DelegateFocusMixin = dedupingMixin(
|
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
/**
|
|
169
|
-
* @param {
|
|
169
|
+
* @param {FocusEvent} event
|
|
170
170
|
* @return {boolean}
|
|
171
171
|
* @protected
|
|
172
172
|
* @override
|
|
@@ -175,6 +175,16 @@ export const DelegateFocusMixin = dedupingMixin(
|
|
|
175
175
|
return event.target === this.focusElement;
|
|
176
176
|
}
|
|
177
177
|
|
|
178
|
+
/**
|
|
179
|
+
* @param {FocusEvent} event
|
|
180
|
+
* @return {boolean}
|
|
181
|
+
* @protected
|
|
182
|
+
* @override
|
|
183
|
+
*/
|
|
184
|
+
_shouldRemoveFocus(event) {
|
|
185
|
+
return event.target === this.focusElement;
|
|
186
|
+
}
|
|
187
|
+
|
|
178
188
|
/**
|
|
179
189
|
* @param {boolean} disabled
|
|
180
190
|
* @param {boolean} oldDisabled
|
package/src/element-mixin.js
CHANGED
|
@@ -169,7 +169,7 @@ export class SlotChildObserveController extends SlotController {
|
|
|
169
169
|
__updateNodeId(node) {
|
|
170
170
|
// When in multiple mode, only set ID attribute on the element in default slot.
|
|
171
171
|
const isFirstNode = !this.nodes || node === this.nodes[0];
|
|
172
|
-
if (node.nodeType === Node.ELEMENT_NODE && isFirstNode && !node.id) {
|
|
172
|
+
if (node.nodeType === Node.ELEMENT_NODE && (!this.multiple || isFirstNode) && !node.id) {
|
|
173
173
|
node.id = this.defaultId;
|
|
174
174
|
}
|
|
175
175
|
}
|