Skip to content

Commit

Permalink
CheckBoxListItem does not update aria-checked selected
Browse files Browse the repository at this point in the history
Fix #1653
  • Loading branch information
enchev committed Aug 16, 2024
1 parent 97ee7b7 commit 42b9ef3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Radzen.Blazor/RadzenCheckBoxList.razor
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<div @ref="@item.Element" id="@item.GetItemId()" @onclick="@(args => SelectItem(item))" @attributes="item.Attributes" class="@item.GetItemCssClass()" style="@item.Style">
<div class="rz-chkbox" @onkeypress="@(args => OnKeyPress(args, SelectItem(item)))" @onkeypress:preventDefault=preventKeyPress @onkeypress:stopPropagation tabindex="@(Disabled || ReadOnly || item.Disabled || item.ReadOnly ? "-1" : $"{TabIndex}")">
<div class="rz-helper-hidden-accessible">
<input type="checkbox" name="@Name" value="@item.Value" disabled="@Disabled" readonly="@ReadOnly" tabindex="-1" aria-label="@(item.Text + " " + item.Value)" aria-checked="@((item.Value as bool? == true).ToString().ToLowerInvariant())">
<input type="checkbox" name="@Name" value="@item.Value" disabled="@Disabled" readonly="@ReadOnly" tabindex="-1" aria-label="@(item.Text + " " + item.Value)" aria-checked="@(IsSelected(item).ToString().ToLowerInvariant())">
</div>
<div class=@ItemClassList(item)>
<span class=@IconClassList(item)></span>
Expand Down

0 comments on commit 42b9ef3

Please sign in to comment.