-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Closed
Labels
area-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.This issue describes a behavior which is not expected - a bug.
Milestone
Description
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 ComponentsIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.This issue describes a behavior which is not expected - a bug.
Type
Projects
Status
Done