diff --git a/app/screens/settings/notification_settings_auto_responder/notification_settings_auto_responder.js b/app/screens/settings/notification_settings_auto_responder/notification_settings_auto_responder.js index 9609bd855..f9ecde3a2 100644 --- a/app/screens/settings/notification_settings_auto_responder/notification_settings_auto_responder.js +++ b/app/screens/settings/notification_settings_auto_responder/notification_settings_auto_responder.js @@ -44,6 +44,8 @@ export default class NotificationSettingsAutoResponder extends PureComponent { const {intl} = this.context; const notifyProps = getNotificationProps(currentUser); + this.autoresponderRef = React.createRef(); + const autoResponderDefault = intl.formatMessage({ id: 'mobile.notification_settings.auto_responder.default_message', defaultMessage: 'Hello, I am out of office and unable to respond to messages.', @@ -65,6 +67,16 @@ export default class NotificationSettingsAutoResponder extends PureComponent { this.saveUserNotifyProps(); } + componentDidMount() { + setTimeout(() => { + requestAnimationFrame(() => { + if (this.autoresponderRef.current) { + this.autoresponderRef.current.focus(); + } + }); + }, 500); + } + saveUserNotifyProps = () => { this.props.onBack({ ...this.state, @@ -126,8 +138,7 @@ export default class NotificationSettingsAutoResponder extends PureComponent { >