@vaadin/component-base 24.2.0-alpha2 → 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-alpha2",
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": "b8378bd2267728e172012bcb2ea45c3e5a6e590a"
45
+ "gitHead": "e5d1e1ed2d01b56d5922e18a3fcb7cd306351954"
46
46
  }
@@ -45,7 +45,7 @@ const registered = new Set();
45
45
  export const ElementMixin = (superClass) =>
46
46
  class VaadinElementMixin extends DirMixin(superClass) {
47
47
  static get version() {
48
- return '24.2.0-alpha2';
48
+ return '24.2.0-alpha3';
49
49
  }
50
50
 
51
51
  /** @protected */
@@ -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
  }