Revert "Merge pull request #807 from matrix-org/matthew/quick-search"

This reverts commit 0ad1d8caf3, reversing
changes made to 1189368aab.
This commit is contained in:
David Baker 2017-05-16 16:11:01 +01:00
parent 67c6a8b81d
commit ebfafb3639
7 changed files with 99 additions and 265 deletions

View file

@ -47,12 +47,6 @@ export default React.createClass({
this.props.onFinished(false);
},
componentDidMount: function() {
if (this.props.focus) {
this.refs.button.focus();
}
},
render: function() {
const BaseDialog = sdk.getComponent('views.dialogs.BaseDialog');
const cancelButton = this.props.hasCancelButton ? (
@ -69,7 +63,7 @@ export default React.createClass({
{this.props.description}
</div>
<div className="mx_Dialog_buttons">
<button ref="button" className="mx_Dialog_primary" onClick={this.onOk}>
<button className="mx_Dialog_primary" onClick={this.onOk} autoFocus={this.props.focus}>
{this.props.button}
</button>
{this.props.extraButtons}