We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3f38fdd + 61c973d commit 06fc436Copy full SHA for 06fc436
src/FormContainer.vue
@@ -42,8 +42,12 @@
42
* When schema is changed it updates values with it.
43
* @param {object} schema
44
*/
45
- schema (schema) {
46
- this.setupValuesWith(schema, this.values);
+ schema: {
+ immediate: true,
47
+ handler (schema = this.schema) {
48
+ const values = this.values || this.initial;
49
+ this.setupValuesWith(schema, values);
50
+ }
51
}
52
},
53
@@ -151,10 +155,6 @@
151
155
152
156
render () {
153
157
return this.$scopedSlots.default(this.scope);
154
- },
-
- mounted () {
- this.setupValuesWith(this.schema, this.initial);
158
159
};
160
</script>
0 commit comments