Merge pull request #3478 from matrix-org/bwindels/createroomfocus

Move focus to first field in create room dialog when showing
pull/21833/head
Bruno Windels 2019-09-25 14:16:54 +00:00 committed by GitHub
commit 066fc61503
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -65,6 +65,8 @@ export default createReactClass({
componentDidMount() {
this._detailsRef.addEventListener("toggle", this.onDetailsToggled);
// move focus to first field when showing dialog
this._nameFieldRef.focus();
},
componentWillUnmount() {