浏览代码

fix input binding test

Falko Schindler 1 年之前
父节点
当前提交
b6480425a9
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      nicegui/elements/input.js

+ 3 - 0
nicegui/elements/input.js

@@ -26,6 +26,9 @@ export default {
     };
     };
   },
   },
   watch: {
   watch: {
+    value(newValue) {
+      this.inputValue = newValue;
+    },
     inputValue(newValue) {
     inputValue(newValue) {
       this.$emit("update:value", newValue);
       this.$emit("update:value", newValue);
     },
     },