From 1c11b8e2746358bfeaaeea7f4ccd889ae9638cc1 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 25 Sep 2019 15:08:48 +0200 Subject: [PATCH] Move focus to first field in create room dialog when showing --- src/components/views/dialogs/CreateRoomDialog.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/views/dialogs/CreateRoomDialog.js b/src/components/views/dialogs/CreateRoomDialog.js index e3070cfef3..8e267da5d1 100644 --- a/src/components/views/dialogs/CreateRoomDialog.js +++ b/src/components/views/dialogs/CreateRoomDialog.js @@ -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() {