fix checkbox initial value
This commit is contained in:
+1
-1
@@ -1370,7 +1370,7 @@ const ForceRules = ({ rules, onePerPage }) => {
|
||||
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>
|
||||
</label>
|
||||
<div
|
||||
|
||||
@@ -117,7 +117,11 @@ export const ShortSummaryTable = ({ force, primaryColor, name, points }) => {
|
||||
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>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user