forked from CringeStudios/gamja
Blur the composer when hiding it
This should make toggling the composer in a server buffer more reliable.
This commit is contained in:
parent
a9c1abb064
commit
2546d31af0
@ -17,6 +17,10 @@ export default class Composer extends Component {
|
||||
|
||||
handleInput(event) {
|
||||
this.setState({ [event.target.name]: event.target.value });
|
||||
|
||||
if (this.props.readOnly && event.target.name === "text" && !event.target.value) {
|
||||
event.target.blur();
|
||||
}
|
||||
}
|
||||
|
||||
handleSubmit(event) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user