fix(ChangeLog) Checkbox not working properly

This commit is contained in:
2022-04-17 20:32:17 -04:00
parent 1e2d9846b3
commit 59aa0d1ad6
2 changed files with 4 additions and 2 deletions
+3 -2
View File
@@ -7,8 +7,9 @@
class="formCheckboxInput" class="formCheckboxInput"
type="checkbox" type="checkbox"
id="@labelId" id="@labelId"
checked="@Value checked="@Value"
"@onchange="OnChange"/> @onchange="OnChange"
@oninput="OnChange"/>
</div> </div>
@if (Info != "") @if (Info != "")
{ {
+1
View File
@@ -111,6 +111,7 @@ else
void OnChangeClicked(ChangeEventArgs changeEventArgs) void OnChangeClicked(ChangeEventArgs changeEventArgs)
{ {
isViewImportant = (bool)changeEventArgs.Value!; isViewImportant = (bool)changeEventArgs.Value!;
StateHasChanged();
} }
void HasChanged() void HasChanged()