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