瀏覽代碼

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

Nils Wisiol 4 年之前
父節點
當前提交
de8c6af905
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      webapp/src/components/Field/Record.vue

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

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