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 #1698 from matrix-org/dbkr/fix_autofocus
Browse files Browse the repository at this point in the history
Fix autofocus on QuestionDialog
  • Loading branch information
dbkr authored Jan 12, 2018
2 parents aa5d42d + 99a72b5 commit 952f2c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/views/dialogs/QuestionDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@ export default React.createClass({
<BaseDialog className="mx_QuestionDialog" onFinished={this.props.onFinished}
onEnterPressed={this.onOk}
title={this.props.title}
focus={this.props.focus}
>
<div className="mx_Dialog_content">
{ this.props.description }
</div>
<DialogButtons primaryButton={this.props.button || _t('OK')}
onPrimaryButtonClick={this.onOk}
primaryButtonClass={primaryButtonClass}
focus={this.props.focus}
onCancel={this.onCancel}
>
{ this.props.extraButtons }
Expand Down

0 comments on commit 952f2c6

Please sign in to comment.