1π
β
I got the problem. So the data section of FormBuilder
is executed once only. So first time it works fine but second time itβs not executing the data section.
You need to add a watch
on the value
variable and assign the data in formData
again.
You can also use immediate:true
Ex-
watch: {
test: {
immediate: true,
handler(newVal, oldVal) {
console.log(newVal, oldVal)
},
},
},
Sandbox β https://codesandbox.io/s/dreamy-brook-em6lk
π€Pratik Patel
Source:stackexchange.com