Live Chat Icon For mobile
Live Chat Icon

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">
    <InputCheckbox @bind-Value="@Visible"></InputCheckbox>
@code {
    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.