From af6ee2703192163e031124a21ce390c5ac2f4fe2 Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Sat, 24 Apr 2021 20:56:22 -0700 Subject: [PATCH] Fix issue with checkbox click, closes #549. --- components/common/Checkbox.js | 2 +- components/forms/WebsiteEditForm.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/common/Checkbox.js b/components/common/Checkbox.js index 9b76e805..0cd0dcad 100644 --- a/components/common/Checkbox.js +++ b/components/common/Checkbox.js @@ -22,7 +22,7 @@ function Checkbox({ name, value, label, onChange }) { className={styles.input} type="checkbox" name={name} - value={value} + defaultChecked={value} onChange={onChange} /> diff --git a/components/forms/WebsiteEditForm.js b/components/forms/WebsiteEditForm.js index 4bc19a2f..0be48561 100644 --- a/components/forms/WebsiteEditForm.js +++ b/components/forms/WebsiteEditForm.js @@ -77,7 +77,7 @@ export default function WebsiteEditForm({ values, onSave, onClose }) { - +