Skip to content

Commit

Permalink
feat(connector): provide consistent interface for searchbox renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre Stanislawski committed Feb 15, 2017
1 parent cdf8675 commit 17d8301
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/connectors/search-box/connectSearchBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ const connectSearchBox = searchBoxRendering => ({
return {
init({helper, onHistoryChange}) {
this._search = makeSearch(helper);
this._onHistoryChange = onHistoryChange;
searchBoxRendering({
query: helper.state.query,
containerNode,
Expand All @@ -101,7 +102,7 @@ const connectSearchBox = searchBoxRendering => ({
searchBoxRendering({
query: helper.state.query,
containerNode,
onHistoryChange: () => {},
onHistoryChange: this.onHistoryChange,
poweredBy,
helper,
wrapInput,
Expand Down

0 comments on commit 17d8301

Please sign in to comment.