Skip to content

Commit

Permalink
fix checkbox on settings page
Browse files Browse the repository at this point in the history
  • Loading branch information
josxha committed Mar 14, 2024
1 parent d1efd3b commit 299b87c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<div class="field">
<label class="checkbox">
<input type="checkbox" class="checkbox"
@(attributes.Required ? "required" : "")
@(ReferenceEquals(attributes.Value, "on") ? "checked" : "")
@(attributes.Required ? "required" : "")
@(attributes.Value.ToString() == "True" ? "checked" : "")
@(attributes.Disabled ? "disabled" : "")
name="@attributes.Name"
value="true"
Expand Down

0 comments on commit 299b87c

Please sign in to comment.