Blur the composer when hiding it

This should make toggling the composer in a server buffer more
reliable.
This commit is contained in:
Simon Ser 2021-06-07 15:18:00 +02:00
parent a9c1abb064
commit 2546d31af0

View file

@ -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) {