Skip to content

InputCheckbox does not set initial value #8502

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
we4sz opened this issue Mar 14, 2019 · 1 comment
Closed

InputCheckbox does not set initial value #8502

we4sz opened this issue Mar 14, 2019 · 1 comment
Assignees
Labels
area-blazor Includes: Blazor, Razor Components investigate

Comments

@we4sz
Copy link

we4sz commented Mar 14, 2019

Describe the bug

When creating a InputCheckbox where value is true the checkbox is still unchecked.

To Reproduce

Steps to reproduce the behavior:

  1. Create a simple component
<EditForm Model="this">
    <h4>Checkbox</h4>
    <InputCheckbox bind-Value="@Visible"></InputCheckbox>
</EditForm>

@functions{
    [Parameter]
    protected bool Visible { get; set; } = true;
}

Expected behavior

The checkbox should be checked

Additional context

<PackageReference Include="Microsoft.AspNetCore.Blazor" Version="0.9.0-preview3-19154-02" />
<PackageReference Include="Microsoft.AspNetCore.Blazor.Build" Version="0.9.0-preview3-19154-02" PrivateAssets="all" />
@mkArtakMSFT mkArtakMSFT added area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates Components Big Rock This issue tracks a big effort which can span multiple issues area-blazor Includes: Blazor, Razor Components and removed Components Big Rock This issue tracks a big effort which can span multiple issues labels Mar 14, 2019
@danroth27 danroth27 added this to the 3.0.0-preview5 milestone Apr 10, 2019
@SteveSandersonMS
Copy link
Member

Thanks @we4sz for reporting this. It will be fixed in the next release.

@mkArtakMSFT mkArtakMSFT removed area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates labels May 9, 2019
@ghost ghost locked as resolved and limited conversation to collaborators Dec 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-blazor Includes: Blazor, Razor Components investigate
Projects
None yet
Development

No branches or pull requests

4 participants