Skip to content

Commit 2c3d67d

Browse files
Merge pull request #91 from diverta/fix#90
fix: ProfileForm.vue
2 parents c802c8f + 0546296 commit 2c3d67d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

components/ProfileForm.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<FormKit
3-
v-model="values"
3+
v-model="localValues"
44
type="form"
55
:incomplete-message="$t('verify.fille_property')"
66
:submit-label="$t('common.submit')"
@@ -192,15 +192,16 @@
192192

193193
<script setup>
194194
import { FormKitSchema } from '@formkit/vue';
195-
const values = ref({});
196195
197196
const props = defineProps({
198197
formValues: {
199198
type: Object,
200199
default: () => ({})
201200
}
202201
});
203-
values.value = { ...props.values };
202+
203+
// Wait for the initialization to complete using computed.
204+
const localValues = computed(() => props.formValues);
204205
205206
const emit = defineEmits(['submit']);
206207
</script>

0 commit comments

Comments
 (0)