Skip to content

Conversation

@romhml
Copy link
Member

@romhml romhml commented May 14, 2025

πŸ”— Linked issue

Resolves #3736

❓ 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

Blocks the form field injection after the useFormField composable is used to avoid duplicating events when nesting input components.

This fixes an issue with the USelectMenu component which uses the UInput component internally, where both the UInput and USelectMenu would send validation events to the Form component. With this change, only the SelectMenu will send these events.

πŸ“ Checklist

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

@nuxthub-admin
Copy link
Contributor

nuxthub-admin bot commented May 14, 2025

βœ… Deployed ui3

Deployed ui3 d6df521 to preview

πŸ”— fix-form-nested-input.ui-6q2.pages.dev
πŸ“Œ 7f36afe1.ui-6q2.pages.dev
πŸ“±
View QR Code QR code linking to deployment URL.

πŸ“‹ View deployment logs

@pkg-pr-new
Copy link

pkg-pr-new bot commented May 14, 2025

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

commit: d6df521

@benjamincanac benjamincanac merged commit d79da9d into v3 May 14, 2025
8 checks passed
@benjamincanac benjamincanac deleted the fix/form-nested-input branch May 14, 2025 17:24
@benjamincanac benjamincanac added the v3 #1289 label Aug 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v3 #1289

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[USelectMenu] Validation events are triggered before change when wrapped in a custom component

3 participants