Skip to content

Commit

Permalink
Ensure checked boxes are preserved in OrchardCore.Forms even where th…
Browse files Browse the repository at this point in the history
…ere isn't a default value on the InputPart
  • Loading branch information
Ryan Powers authored and Ryan Powers committed Nov 14, 2024
1 parent 05bd65a commit 8c938eb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
{
if (Model.Value.Type == "checkbox")
{
isChecked = fieldEntry.AttemptedValue == fieldValue;
isChecked = fieldEntry.AttemptedValue == (fieldValue ?? "on");
}
else
{
Expand Down

0 comments on commit 8c938eb

Please sign in to comment.