Merge pull request #3478 from matrix-org/bwindels/createroomfocus
Move focus to first field in create room dialog when showingpull/21833/head
commit
066fc61503
|
@ -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 New Issue