You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The clear function for the Form component should clear errors for a specific path when passing the path arg, instead it clears all other errors and keeps the errors associated with that path.
clear(path?: string){if(path){// Set errors to array of errors without the specified path.errors.value=errors.value.filter((err)=>err.path!==path)}else{errors.value=[]}}
Will submit a PR.
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered:
Environment
Version
2.11.1
Reproduction
https://stackblitz.com/edit/nuxt-ui-vq8wpj?file=components%2FTest.vue
Description
The clear function for the Form component should clear errors for a specific path when passing the path arg, instead it clears all other errors and keeps the errors associated with that path.
This is the function in the form component.
I think it should be a simple change to:
Will submit a PR.
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: