mirror of https://github.com/vector-im/riot-web
Move focus to first field in create room dialog when showing
parent
b248918aca
commit
1c11b8e274
|
@ -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