From 06990beabf67f668322b4d3fb2ec93cc4f3bdcd4 Mon Sep 17 00:00:00 2001 From: Romain Hamel Date: Mon, 3 Jun 2024 13:59:26 +0200 Subject: [PATCH] fix(Form): maintain other errors when using `setErrors` with a path (#1818) Co-authored-by: Benjamin Canac --- src/runtime/components/forms/Form.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/src/runtime/components/forms/Form.vue b/src/runtime/components/forms/Form.vue index 27fd0baa..81947f6d 100644 --- a/src/runtime/components/forms/Form.vue +++ b/src/runtime/components/forms/Form.vue @@ -151,7 +151,6 @@ export default defineComponent({ validate, errors, setErrors (errs: FormError[], path?: string) { - errors.value = errs if (path) { errors.value = errors.value.filter( (error) => error.path !== path