mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-25 01:10:40 +01:00
fix(Form): maintain other errors when using setErrors with a path (#1818)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
@@ -151,7 +151,6 @@ export default defineComponent({
|
|||||||
validate,
|
validate,
|
||||||
errors,
|
errors,
|
||||||
setErrors (errs: FormError[], path?: string) {
|
setErrors (errs: FormError[], path?: string) {
|
||||||
errors.value = errs
|
|
||||||
if (path) {
|
if (path) {
|
||||||
errors.value = errors.value.filter(
|
errors.value = errors.value.filter(
|
||||||
(error) => error.path !== path
|
(error) => error.path !== path
|
||||||
|
|||||||
Reference in New Issue
Block a user