fix checkbox initial value

This commit is contained in:
NilsUeter
2025-04-06 20:06:33 +02:00
parent bd111e401c
commit 3b858c6aa0
2 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -1370,7 +1370,7 @@ const ForceRules = ({ rules, onePerPage }) => {
paddingBottom: 2, paddingBottom: 2,
}} }}
> >
<input type="checkbox" onChange={() => setHide(!hide)} /> <input type="checkbox" checked={hide} onChange={() => setHide(!hide)} />
<span className="print-display-none">Don't print this card.</span> <span className="print-display-none">Don't print this card.</span>
</label> </label>
<div <div
+5 -1
View File
@@ -117,7 +117,11 @@ export const ShortSummaryTable = ({ force, primaryColor, name, points }) => {
userSelect: "none", userSelect: "none",
}} }}
> >
<input type="checkbox" onChange={() => setHide(!hide)} /> <input
type="checkbox"
checked={hide}
onChange={() => setHide(!hide)}
/>
<span className="print-display-none">Don't print this card.</span> <span className="print-display-none">Don't print this card.</span>
</label> </label>
</div> </div>