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

Move focus to first field in create room dialog when showing
This commit is contained in:
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

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