Form in ChatInput are displayed correctly!

This commit is contained in:
Josako
2025-06-13 20:30:56 +02:00
parent 2835486599
commit 3c7460f741
5 changed files with 40 additions and 12 deletions

View File

@@ -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
},