You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(many): only reference rendered messages via aria-describedby
Address PR review feedback on the form-field messages work:
- The aria-describedby wiring referenced a messages element even when the message had no
text. FormField (via FormFieldLayout) only renders messages that have text, so this left
a dangling reference — e.g. DateTimeInput passes an empty-text error message to its
sub-inputs just to force the invalid styling. Gate the wiring on messages that actually
render (`messages.some(m => !!m.text)`). Checkbox is unchanged here: it renders messages
via FormFieldMessages on `length > 0`, so its reference always resolves.
- Drop the now-unnecessary type casts around the aria-* reads in Checkbox, TextArea,
NumberInput and RangeInput.
- TextInput: expand the comment to explain why messages must be kept out of the name.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments