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
{{ message }}
Repository navigation
Compilers inline ?? "" for a nullish checkbox/radio value in non-hydratable builds (follow-up to #4009) #4017
#4009 (closing #4008) fixed the runtime: when a checkbox or radio gets a nullish value, setProperty and the spread path now remove the attribute, so a checked box submits the native "on" instead of "".
Non-hydratable client builds don't reach that path for a direct binding. Both compilers inline the #2957 text-field fallback for value/defaultValue on every input, whatever its type:
The build modes should behave the same. When the input's static type is checkbox or radio, or isn't static, a nullish value/defaultValue should remove the attribute, as the runtime does. Text inputs and textarea keep the ?? "" clearing from #2957.
Notes
Hydratable builds already route these bindings through setProperty, so only the non-hydratable inline path is affected.
Fixed by #4021 (merged into next): in non-hydratable builds, a nullish checkbox/radio value now removes the attribute instead of inlining ?? "", in both compilers.
Activity
fix(compiler): nullish checkbox/radio value removes the attribute in …
ryansolid commentedon Oct 13, 2026
Generated by Claude Code
ryansolid commentedon Oct 13, 2026
Generated by Claude Code