mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-15 00:24:45 +01:00
optional readonly and fix clear buttons
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user