Q:

Why does Blazor InputCheckbox not set an initial value?

0

This code will help you to understand Why Blazor InputCheckbox does not set an initial value

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

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;
}

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now