This code will help you to understand Why Blazor InputCheckbox does not set an initial value
This issue is resolved in the Balzor 3.0.0 Preview 5 version.
<EditForm Model="this"> <h4>Checkbox</h4> <InputCheckbox @bind-Value="@Visible"></InputCheckbox> </EditForm>
@code { [Parameter] public bool Visible { get; set; } = true; }
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
This issue is resolved in the Balzor 3.0.0 Preview 5 version.
need an explanation for this answer? contact us directly to get an explanation for this answer