Repository navigation
[fieldset] Fix disabled fieldset form bugs - #4890
Conversation
commit: |
Bundle size
PerformanceTotal duration: 1,322.54 ms -67.26 ms(-4.8%) | Renders: 50 (+0) | Paint: 2,000.10 ms -103.39 ms(-4.9%)
11 tests within noise — details Check out the code infra dashboard for more information about this PR. |
✅ Deploy Preview for base-ui ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Code Review (GPT-5.5 + Opus 4.7)Approve ✅: the current branch fixes the Fieldset/Form disabled-state bugs without introducing actionable issues, and the broader disabled-control behavior is now documented in the PR body. 1. Bugs / Issues (None)No concrete blocking or non-blocking issues found in the full diff against refreshed Root Cause & Patch AssessmentThe fix is targeted at the right ownership points. Changing The Form registration changes are consistent across the affected field-aware controls: disabled controls stop registering with the Base UI Form validation map, which excludes them from validation and Pattern Consistency AssessmentAll touched Opus NotesOpus called out that the behavior change is broader than fieldsets: individually disabled field-aware controls are also excluded from Form validation and submitted values. That is native-aligned and is now called out in the PR body, so I do not see a remaining documentation issue. Opus also noted the synchronous Test Coverage AssessmentValidation run on the current PR head:
The focused coverage exercises native Fieldset disabled semantics, nested fieldsets, render-prop disabled propagation, Form submit values, and the Legend missing-root guard. I do not see a remaining coverage gap that needs to block this PR. |
This is part of the Codex component behavior and test coverage sweep. It fixes Fieldset/Form disabled-state bugs found during review and adds focused test coverage for the affected paths.
Disabled field-aware controls now follow native HTML disabled semantics more broadly: whether disabled directly, through
Field.Root, or throughFieldset.Root, they are skipped by Base UIFormvalidation and omitted fromonFormSubmitvalues.Changes
disabledsemantics onFieldset.Root, including nested fieldsets and render-prop compositions.Formvalidation and submission.Fieldset.Legendmissing-root guard reachable.Original findings addressed
<Fieldset.Root disabled>drops the native disabled attribute.disableddoes not flow through documented Fieldset render compositions.Fieldset.Legendis dead code.