1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-28 15:22:05 +03:00

Move focus to first field in create room dialog when showing

This commit is contained in:
Bruno Windels
2019-09-25 15:08:48 +02:00
parent b248918aca
commit 1c11b8e274

View File

@ -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() {