@aemforms/af-core 0.22.29 → 0.22.30

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/lib/cjs/index.cjs CHANGED
@@ -1488,7 +1488,7 @@ class Container extends Scriptable {
1488
1488
  this._jsonModel.initialItems = Math.max(1, this._jsonModel.minItems);
1489
1489
  }
1490
1490
  for (let i = 0; i < this._jsonModel.initialItems; i++) {
1491
- const child = this._addChild(this._itemTemplate, null, true);
1491
+ const child = this._addChild(this._itemTemplate, null, i > 0);
1492
1492
  items[0].id = child.id;
1493
1493
  child._initialize();
1494
1494
  }
@@ -205,7 +205,7 @@ class Container extends Scriptable {
205
205
  this._jsonModel.initialItems = Math.max(1, this._jsonModel.minItems);
206
206
  }
207
207
  for (let i = 0; i < this._jsonModel.initialItems; i++) {
208
- const child = this._addChild(this._itemTemplate, null, true);
208
+ const child = this._addChild(this._itemTemplate, null, i > 0);
209
209
  items[0].id = child.id;
210
210
  child._initialize();
211
211
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aemforms/af-core",
3
- "version": "0.22.29",
3
+ "version": "0.22.30",
4
4
  "description": "Core Module for Forms Runtime",
5
5
  "author": "Adobe Systems",
6
6
  "license": "Adobe Proprietary",
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "dependencies": {
44
44
  "@adobe/json-formula": "0.1.50",
45
- "@aemforms/af-formatters": "^0.22.29"
45
+ "@aemforms/af-formatters": "^0.22.30"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/jest": "29.2.4",