Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

Commit b1eeb5f

Browse files
authored
Merge pull request #208 from asigloo/bugfix/change-detection-cache-issue
fix: update cache after change detection succeed.
2 parents cddc0d6 + 5a6aef9 commit b1eeb5f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/dynamic-form/DynamicForm.vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export default defineComponent({
9090
components,
9191
setup(props, ctx) {
9292
const { options } = inject(dynamicFormsSymbol);
93-
const cache = deepClone(toRaw(props.form.fields));
93+
let cache = deepClone(toRaw(props.form.fields));
9494
9595
const controls: Ref<FormControl<InputType>[]> = ref([]);
9696
const forceValidation = ref(false);
@@ -245,6 +245,7 @@ export default defineComponent({
245245
});
246246
}
247247
});
248+
cache = deepClone(toRaw(props.form.fields));
248249
}
249250
250251
function resetForm() {

0 commit comments

Comments
 (0)