fix options checkbox

This commit is contained in:
SpikeHD
2022-05-20 19:53:38 -07:00
parent 2983345d1b
commit fcf395eccb
3 changed files with 9 additions and 4 deletions

View File

@@ -30,7 +30,7 @@ export default class Checkbox extends React.Component<IProps, IState> {
}
}
return null
return { checked: props.checked }
}
handleChange = () => {

View File

@@ -28,8 +28,6 @@ export default class DirInput extends React.Component<IProps, IState> {
}
this.handleIconClick = this.handleIconClick.bind(this)
console.log(this.props)
}
static getDerivedStateFromProps(props: IProps, state: IState) {