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

Closed
wants to merge 2 commits into 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.
Siteproxy

Verified

This commit was signed with the committer’s verified signature.
romhml Romain Hamel
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

Verified

This commit was signed with the committer’s verified signature.
romhml Romain Hamel
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

@romhml romhml closed this Jun 29, 2025
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