Why does Blazor InputCheckbox not set an initial value?

Platform: Blazor| Category: Forms and validation

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

For more information, refer to the thread Blazor InputCheckbox does not set initial value.

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.