optional readonly and fix clear buttons

This commit is contained in:
SpikeHD
2022-05-20 19:04:59 -07:00
parent 8cb00f7024
commit c8a172443d
5 changed files with 29 additions and 5 deletions

View File

@@ -48,6 +48,8 @@ export default class TextInput extends React.Component<IProps, IState> {
this.setState({ value: '' })
if (this.props.onChange) this.props.onChange('')
this.forceUpdate()
}}>
<img src={Close} className="TextInputClear" />
</div> : null