Skip to content

Commit 3f17125

Browse files
committed
On InputFilterTemplate() update missing check on isChecked value before apply checked html attribute.
1 parent 94c33e8 commit 3f17125

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

blazorbootstrap/Components/Grid/GridColumnFilter.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ or StringConstants.PropertyTypeNameDecimal
114114

115115
if (PropertyTypeName == StringConstants.PropertyTypeNameBoolean)
116116
{
117-
if (bool.TryParse(filterValue, out bool isChecked))
117+
if ((bool.TryParse(filterValue, out bool isChecked)) && isChecked)
118118
builder.AddAttribute(104, "checked", "checked");
119119

120120
builder.AddAttribute(106, "onchange", async (ChangeEventArgs args) => await OnFilterValueChangedAsync(args));

0 commit comments

Comments
 (0)