Browse Source

fix(webapp): update Record field whenever prop changes, fixes #497

Nils Wisiol 4 years ago
parent
commit
de8c6af905
1 changed files with 5 additions and 0 deletions
  1. 5 0
      webapp/src/components/Field/Record.vue

+ 5 - 0
webapp/src/components/Field/Record.vue

@@ -86,6 +86,11 @@ export default {
     ],
     value: '',
   }),
+  watch: {
+    content: function () {
+      this.update(this.content);
+    }
+  },
   beforeMount() {
     // Initialize per-field value storage
     this.fields.forEach((field) => {