Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #3478 from matrix-org/bwindels/createroomfocus
Browse files Browse the repository at this point in the history
Move focus to first field in create room dialog when showing
  • Loading branch information
bwindels authored Sep 25, 2019
2 parents b248918 + 1c11b8e commit 066fc61
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/views/dialogs/CreateRoomDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 066fc61

Please sign in to comment.