We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c802c8f + 0546296 commit 2c3d67dCopy full SHA for 2c3d67d
components/ProfileForm.vue
@@ -1,6 +1,6 @@
1
<template>
2
<FormKit
3
- v-model="values"
+ v-model="localValues"
4
type="form"
5
:incomplete-message="$t('verify.fille_property')"
6
:submit-label="$t('common.submit')"
@@ -192,15 +192,16 @@
192
193
<script setup>
194
import { FormKitSchema } from '@formkit/vue';
195
-const values = ref({});
196
197
const props = defineProps({
198
formValues: {
199
type: Object,
200
default: () => ({})
201
}
202
});
203
-values.value = { ...props.values };
+
+// Wait for the initialization to complete using computed.
204
+const localValues = computed(() => props.formValues);
205
206
const emit = defineEmits(['submit']);
207
</script>
0 commit comments