Skip to content

Radio button checked property not reset after enhanced form request #51429

Closed
@danroth27

Description

@danroth27

Repro steps:

  • Create a Blazor Web App
  • In Home.razor add:
<form data-enhance>
    <input type="radio" />
    <button>Submit</button>
</form>
  • Select the radio button and then submit the form

Expected result: The radio button is not selected after the form is submitted.
Actual result: The radio button is still selected.
Workaround: Remove data-enhance to make the form request no longer enhanced.

For comparison, if you change the input type to checkbox and do the same test, the checkbox does get unselected after submitting the form even with enhanced form handling enabled.

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions