dotnet / aspnetcore

ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
https://asp.net
MIT License
35.36k stars 9.99k forks source link

Error if radio button group is not selected #51385

Closed Bartmax closed 12 months ago

Bartmax commented 1 year ago

Is there an existing issue for this?

Describe the bug

If you have a radiobuttongroup and no option is selected, instead of returning validation errors, it throws with: EditForm requires either a Model parameter, or an EditContext parameter, please provide one of these.

ghost commented 1 year ago

Thank you for filing this issue. In order for us to investigate this issue, please provide a minimal repro project that illustrates the problem without unnecessary code. Please share with us in a public GitHub repo because we cannot open ZIP attachments, and don't include any confidential content.

ghost commented 1 year ago

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.

See our Issue Management Policies for more information.

Bartmax commented 12 months ago

https://github.com/Bartmax/RadioBug

I named it CheckboxBug but it's actually a RadioButton bug.

everything is default but https://github.com/Bartmax/RadioBug/blob/master/CheckboxBug/Components/Pages/Home.razor