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

Commit

Permalink
Merge pull request #208 from asigloo/bugfix/change-detection-cache-issue
Browse files Browse the repository at this point in the history
fix: update cache after change detection succeed.
  • Loading branch information
alvarosabu authored Dec 18, 2020
2 parents cddc0d6 + 5a6aef9 commit b1eeb5f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/dynamic-form/DynamicForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export default defineComponent({
components,
setup(props, ctx) {
const { options } = inject(dynamicFormsSymbol);
const cache = deepClone(toRaw(props.form.fields));
let cache = deepClone(toRaw(props.form.fields));
const controls: Ref<FormControl<InputType>[]> = ref([]);
const forceValidation = ref(false);
Expand Down Expand Up @@ -245,6 +245,7 @@ export default defineComponent({
});
}
});
cache = deepClone(toRaw(props.form.fields));
}
function resetForm() {
Expand Down

0 comments on commit b1eeb5f

Please sign in to comment.