Skip to content

Fix checkbox boolean return breaking radio button value.#33

Closed
ryanmaxwell wants to merge 1 commit intomaxatwork:masterfrom
ryanmaxwell:master
Closed

Fix checkbox boolean return breaking radio button value.#33
ryanmaxwell wants to merge 1 commit intomaxatwork:masterfrom
ryanmaxwell:master

Conversation

@ryanmaxwell
Copy link

Maxim's commit #985a3f3214 Returning boolean values from checkboxes was
breaking radio buttons serialization/deserialization when value="true"
(string). This fixes that regression.

Maxim's commit #985a3f3214 Returning boolean values from checkboxes was
breaking radio buttons serialization/deserialization when value="true"
(string). This fixes that regression.
@maxatwork
Copy link
Owner

Closing this because the original regression from this PR is already fixed in the current codebase. The key behavior here was that a checked radio should serialize to its string value, and the current implementation already does that in packages/dom/src/index.ts, with regression coverage in packages/dom/test/dom.test.ts. That part is aligned with browser form submission semantics. The only remaining open question is whether we want to keep the legacy checkbox/radio "true"/"false" boolean coercion behavior, but that is a separate API/design discussion rather than something this 2012-era PR should stay open for.

@maxatwork maxatwork closed this Mar 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants