Skip to content

Commit

Permalink
ui: fix bug where done checkbox would misbehave
Browse files Browse the repository at this point in the history
:
  • Loading branch information
willbarkoff committed May 10, 2021
1 parent e00fdf2 commit 32cfe87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/homework/HomeworkModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export default function HomeworkModal(props) {
<DatePicker value={due} change={setDue} />
<ClassPicker value={classId} change={setClassId} classes={props.classes} />
<label>
<input type="checkbox" checked={isComplete} onChange={(e) => setIsComplete(e.target.value)} /> Done?
<input type="checkbox" checked={isComplete} onChange={(e) => setIsComplete(e.target.checked)} /> Done?
</label>
<textarea class="form-control homeworkModalDesc" placeholder="Description" onInput={(e) => setDesc(e.target.value)} onKeyDown={keydown(true)} value={desc}></textarea>
</div>
Expand Down

0 comments on commit 32cfe87

Please sign in to comment.