@live-change/vue3-components 0.9.185 → 0.9.187

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.
@@ -341,7 +341,7 @@
341
341
  }, { deep: true })
342
342
  }
343
343
 
344
- newElement(index) {
344
+ newElement(index) {
345
345
  if(this.elementDefinition.type === "Object") {
346
346
  return new FormObject(this.elementDefinition, this.component, this.object, index)
347
347
  } else if(this.elementDefinition.type === 'Array') {
@@ -468,14 +468,15 @@
468
468
  }
469
469
  }
470
470
 
471
- addElement(initialValue) {
472
- let el = this.newElement()
471
+ addElement(initialValue) {
472
+ let el = this.newElement(this.elements.length)
473
473
  el.reset(initialValue)
474
474
  this.elements.push(el)
475
475
  }
476
476
 
477
477
  removeElement(i) {
478
478
  this.elements.splice(i, 1)
479
+ this.data[this.property].splice(i, 1)
479
480
  this.updateElementIndices()
480
481
  }
481
482
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/vue3-components",
3
- "version": "0.9.185",
3
+ "version": "0.9.187",
4
4
  "description": "Live Change Framework - vue components",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -21,11 +21,11 @@
21
21
  },
22
22
  "homepage": "https://github.com/live-change/live-change-stack",
23
23
  "dependencies": {
24
- "@live-change/vue3-ssr": "^0.9.185",
24
+ "@live-change/vue3-ssr": "^0.9.187",
25
25
  "debug": "^4.3.4",
26
26
  "mitt": "3.0.1",
27
27
  "vue": "^3.5.12",
28
28
  "vue3-scroll-border": "0.1.7"
29
29
  },
30
- "gitHead": "f8f4caa3498f2dc1229e17adc1a3024dbb772b25"
30
+ "gitHead": "9cb9fc01eebdafb342a419cde03eafdf467eaa32"
31
31
  }