fix the hacky checkboxes
This commit is contained in:
@@ -31,8 +31,9 @@ const Checkbox = (props) => {
|
|||||||
return (
|
return (
|
||||||
<input
|
<input
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
checked={props.parameter}
|
value={props.parameter}
|
||||||
onChange={(e) => props.onChange(e.target.value)}
|
defaultChecked={props.parameter}
|
||||||
|
onChange={(e) => props.onChange(e.target.checked)}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ export default function EG(props) {
|
|||||||
dispatch(
|
dispatch(
|
||||||
parameterUpdated({
|
parameterUpdated({
|
||||||
id: props.id,
|
id: props.id,
|
||||||
changes: { egReset: !parameters.egReset },
|
changes: { egReset: value },
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user