Skip to content

Commit

Permalink
fix(Form): invalid errors when using clear by path (#1165)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnpuaoi committed Jan 2, 2024
1 parent 43b999c commit 97a3975
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/components/forms/Form.vue
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export default defineComponent({
},
clear (path?: string) {
if (path) {
errors.value = errors.value.filter((err) => err.path === path)
errors.value = errors.value.filter((err) => err.path !== path)
} else {
errors.value = []
}
Expand Down

0 comments on commit 97a3975

Please sign in to comment.