Skip to content

fix(field): clear manual errors when user edits the field - #19

Merged
javipuche merged 2 commits into
mainfrom
feat/relax-submit-handler-constraint
Mar 15, 2026
Merged

javipuche merged 2 commits into
mainfrom
feat/relax-submit-handler-constraint

Conversation

@javipuche

Copy link
Copy Markdown
Member

Summary

  • Los errores seteados con setErrors no se limpiaban al editar el campo afectado
  • Ahora manualErrors se resetea en onUpdate:modelValue dentro de Field.vue
  • Solo se limpian los errores del campo que se edita, no los de otros campos

Test plan

  • should clear field error when editing that field after setErrors — verifica que el error desaparece al editar
  • should only clear error of the edited field, not other fields — verifica aislamiento entre campos
  • Todos los tests existentes siguen pasando (93/93)

🤖 Generated with Claude Code

javipuche and others added 2 commits March 11, 2026 11:21
Allows interfaces and class instances as T without needing
`as unknown as Record<string, unknown>` casts.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Errors set via setErrors were not cleared when the user edited the
field. Now manualErrors are reset on input value change, and tests
added to prevent regression.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@javipuche
javipuche merged commit 26cef6b into main Mar 15, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant