Skip to content

DOM sync removes checkbox custom values in some cases #50995

Closed
@SteveSandersonMS

Description

@SteveSandersonMS

Repro: <input type="checkbox" value="myvalue" checked>

If you do an enhanced nav and the resulting content also contains that exact same markup, the value attribute will get overwritten with the string true. Then when you submit the form you'll get wrong results.

I tracked this down to a trivial logic error in the DOM sync code - fix submitted in #50991

Metadata

Metadata

Labels

area-blazorIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions