Fix issue with checkbox click, closes #549.
This commit is contained in:
@@ -22,7 +22,7 @@ function Checkbox({ name, value, label, onChange }) {
|
|||||||
className={styles.input}
|
className={styles.input}
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
name={name}
|
name={name}
|
||||||
value={value}
|
defaultChecked={value}
|
||||||
onChange={onChange}
|
onChange={onChange}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ export default function WebsiteEditForm({ values, onSave, onClose }) {
|
|||||||
</div>
|
</div>
|
||||||
</FormRow>
|
</FormRow>
|
||||||
<FormRow>
|
<FormRow>
|
||||||
<label></label>
|
<label />
|
||||||
<Field name="enable_share_url">
|
<Field name="enable_share_url">
|
||||||
{({ field }) => (
|
{({ field }) => (
|
||||||
<Checkbox
|
<Checkbox
|
||||||
|
|||||||
Reference in New Issue
Block a user