@vaadin/component-base 24.2.0-alpha1 → 24.2.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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/component-base",
|
|
3
|
-
"version": "24.2.0-
|
|
3
|
+
"version": "24.2.0-alpha3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"@vaadin/testing-helpers": "^0.4.2",
|
|
43
43
|
"sinon": "^13.0.2"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "e5d1e1ed2d01b56d5922e18a3fcb7cd306351954"
|
|
46
46
|
}
|
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
|
}
|