Skip to content

feat(FormField): display multiple errors #4335

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: v3
Choose a base branch
from

Conversation

romhml
Copy link
Member

@romhml romhml commented Jun 14, 2025

πŸ”— Linked issue

Resolves #2389

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

Adds the errors and maxErrors properties to the FormField component which allows to display multiple errors. The maxErrors prop is used to limit the number of errors displayed and defaults to 1 for backward compatibility.

This change is compatible with the Form component error's too.

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

Adds the `errors` and `maxErrors` properties to the FormField component which
allows to display multiple errors. The `maxErrors` prop is used to limit
the number of errors displayed and defaults to 1 for backward
compatibility.

This change is compatible with the `Form` component error's too.

Resolves #2389
@romhml romhml requested a review from benjamincanac as a code owner June 14, 2025 15:24
Copy link
Contributor

nuxthub-admin bot commented Jun 14, 2025

βœ… Deployed ui3

Deployed ui3 af25f65 to preview

πŸ“±
View QR Code QR code linking to deployment URL.

πŸ“‹ View deployment logs

Copy link

pkg-pr-new bot commented Jun 14, 2025

npm i https://pkg.pr.new/@nuxt/ui@4335

commit: af25f65

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.

Nested form validation array of messages
1 participant