mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-30 11:47:55 +01:00
fix(Form): invalid errors when using clear by path (#1165)
This commit is contained in:
@@ -152,7 +152,7 @@ export default defineComponent({
|
|||||||
},
|
},
|
||||||
clear (path?: string) {
|
clear (path?: string) {
|
||||||
if (path) {
|
if (path) {
|
||||||
errors.value = errors.value.filter((err) => err.path === path)
|
errors.value = errors.value.filter((err) => err.path !== path)
|
||||||
} else {
|
} else {
|
||||||
errors.value = []
|
errors.value = []
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user