Repository navigation
[radio group] Honor canceled value changes - #4996
Conversation
commit: |
Bundle size
PerformanceTotal duration: 1,235.92 ms -214.44 ms(-14.8%) | Renders: 50 (+0) | Paint: 1,863.18 ms -308.60 ms(-14.2%)
…and 1 more (+6 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)Approve ✅ No actionable issues found; canceled radio value changes leave value and field state untouched, while successful keyboard selection still marks the field touched. 1. Bugs / Issues (None)State / Interaction AssessmentThe cancellation path now runs the cancellable group value-change flow before mutating field touched state. If the change is canceled, Test Coverage AssessmentThe PR covers root click, hidden input click, and arrow navigation cancellation, plus the successful arrow-navigation touched path. Targeted validation passed:
Performance / Operational Risk
|
Canceling
RadioGroup.onValueChangenow leaves the radio value and field state unchanged.Root cause
Radio.Rootmarked the field touched beforeRadioGroupran the cancellable value-change handler.Changes