mirror of
https://codeberg.org/emersion/gamja.git
synced 2024-11-14 19:05:01 -05:00
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
1 changed files with 4 additions and 0 deletions
|
@ -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…
Reference in a new issue