зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1591446 - Use right context when closing project file search, r=jlast.
Differential Revision: https://phabricator.services.mozilla.com/D50620 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
15dd2821c0
Коммит
081b4af474
|
@ -295,7 +295,7 @@ export class ProjectSearch extends Component<Props, State> {
|
|||
}
|
||||
|
||||
renderInput() {
|
||||
const { status } = this.props;
|
||||
const { cx, closeProjectSearch, status } = this.props;
|
||||
return (
|
||||
<SearchInput
|
||||
query={this.state.inputValue}
|
||||
|
@ -310,10 +310,7 @@ export class ProjectSearch extends Component<Props, State> {
|
|||
onBlur={() => this.setState({ inputFocused: false })}
|
||||
onKeyDown={this.onKeyDown}
|
||||
onHistoryScroll={this.onHistoryScroll}
|
||||
handleClose={
|
||||
// TODO - This function doesn't quite match the signature.
|
||||
(this.props.closeProjectSearch: any)
|
||||
}
|
||||
handleClose={() => closeProjectSearch(cx)}
|
||||
ref="searchInput"
|
||||
/>
|
||||
);
|
||||
|
|
Загрузка…
Ссылка в новой задаче