@processmaker/screen-builder 2.21.0 → 2.21.1

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": "@processmaker/screen-builder",
3
- "version": "2.21.0",
3
+ "version": "2.21.1",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
Binary file
@@ -35,7 +35,11 @@ export default {
35
35
  get: new Function(`return this.tryFormField(${JSON.stringify(name)}, () => ${value});`),
36
36
  set() {},
37
37
  };
38
- this.addWatch(screen, defaultComputedName, `!this.${name}_was_filled__ && this.setValue(${JSON.stringify(name)}, this.${defaultComputedName}, this.vdata, this);`);
38
+
39
+ // Do not reset default values on nested objects after a data has changed
40
+ const watchOptions = { deep: false };
41
+
42
+ this.addWatch(screen, defaultComputedName, `!this.${name}_was_filled__ && this.setValue(${JSON.stringify(name)}, this.${defaultComputedName}, this.vdata, this);`, watchOptions);
39
43
  },
40
44
  },
41
45
  mounted() {