Form in ChatInput are displayed correctly!
This commit is contained in:
@@ -65,13 +65,19 @@ export const DynamicForm = {
|
||||
watch: {
|
||||
formValues: {
|
||||
handler(newValues) {
|
||||
this.localFormValues = { ...newValues };
|
||||
// Gebruik een vlag om recursieve updates te voorkomen
|
||||
if (JSON.stringify(newValues) !== JSON.stringify(this.localFormValues)) {
|
||||
this.localFormValues = JSON.parse(JSON.stringify(newValues));
|
||||
}
|
||||
},
|
||||
deep: true
|
||||
},
|
||||
localFormValues: {
|
||||
handler(newValues) {
|
||||
this.$emit('update:formValues', newValues);
|
||||
// Gebruik een vlag om recursieve updates te voorkomen
|
||||
if (JSON.stringify(newValues) !== JSON.stringify(this.formValues)) {
|
||||
this.$emit('update:formValues', JSON.parse(JSON.stringify(newValues)));
|
||||
}
|
||||
},
|
||||
deep: true
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user