DEV Community

[Workaround] How to two-way data binding of radio button input with Blazor SPA (v.0.5.x)?

jsakamoto on August 17, 2018

Introduction: What's "Blazor"? "Blazor" is a Single Page Web Application (a.k.a "SPA") framework. Blazor allows you to running C# code ...
Collapse
 
markstega profile image
MarkStega

I believe that you need to add the 'name' attribute to the radio button group to get them to function as radio buttons (per the example of mine that you quoted from GitHub). Otherwise this is a very clean work-aound while waiting for binding to be implemented.

Collapse
 
j_sakamoto profile image
jsakamoto

I believe that you need to add the 'name' attribute to the radio button group

Oh, You are right! That is my mistake.

I fixed it just now.

Thanks a lot!