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:
commit
066fc61503
1 changed files with 2 additions and 0 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue