| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 3a5c859c-e259-49e6-b75c-4c3e44e1370f 📥 CommitsReviewing files that changed from the base of the PR and between 6b4d2c7 and e48068c. 📒 Files selected for processing (4)
Included review availability: Your plan provides up to 8 included reviews per hour; 7 remain after this review. 📝 Walkthrough WalkthroughSelectTrigger and ComboboxTrigger now wrap their content in FieldGroupReset. Tests verify that field-group classes remain on the trigger and do not apply to badges rendered through trigger slots. Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to 1add9 The select triggers retain their field-group styling while slot content is isolated, with focused coverage for both components. 🚥 Pre-merge checks | ✅ 7 ✅ Passed checks (7 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. ❤️ ShareComment @coderabbitai help to get the list of available commands. |
Sorry, something went wrong.
Merging this PR will not alter performance✅ 31 untouched benchmarks Comparing luckasdc:fix/select-field-group-trigger-slots (1add948) with v4 (a3e64fb) |
Sorry, something went wrong.
npm i https://pkg.pr.new/@nuxt/ui@6946 commit: 1add948 |
Sorry, something went wrong.
There was a problem hiding this comment.
What do you think about resetting the context directly in useFieldGroup instead? 🤔 The leak isn't specific to Select and SelectMenu, it happens in every component that calls it like Button, Badge, Input or InputMenu. Adding this right after the inject fixes them all without touching the templates, and wrappers like UTooltip or UDropdownMenu still propagate since they don't call it:
provide(fieldGroupInjectionKey, computed(() => ({ size: undefined, orientation: undefined })))
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
🔗 Linked issue
Resolves #6945
❓ Type of change
📚 Description
When a USelect or USelectMenu is placed inside a UFieldGroup, components rendered in the trigger's #leading, #default and #trailing slots inherit the field group context.
For example, a UBadge in the #default slot receives the horizontal field group classes (not-only:first:rounded-e-none …). Because it is the first of several children inside the trigger, its right corners become square: