Skip to content

Commit

Permalink
fix(web): add triggerQuery in missing handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
bietkul committed Aug 12, 2019
1 parent b04da84 commit e3d02fd
Show file tree
Hide file tree
Showing 3 changed files with 8,811 additions and 411 deletions.
4 changes: 2 additions & 2 deletions packages/web/src/components/search/CategorySearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ class CategorySearch extends Component {
isOpen: true,
});
if (this.props.onFocus) {
this.props.onFocus(event);
this.props.onFocus(event, this.triggerQuery);
}
};

Expand All @@ -565,7 +565,7 @@ class CategorySearch extends Component {
this.onValueSelected(currentValue, causes.ENTER_PRESS);
}
if (this.props.onKeyDown) {
this.props.onKeyDown(event);
this.props.onKeyDown(event, this.triggerQuery);
}
};

Expand Down
4 changes: 2 additions & 2 deletions packages/web/src/components/search/DataSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ class DataSearch extends Component {
isOpen: true,
});
if (this.props.onFocus) {
this.props.onFocus(event);
this.props.onFocus(event, this.triggerQuery);
}
};

Expand All @@ -489,7 +489,7 @@ class DataSearch extends Component {
this.onValueSelected(event.target.value, causes.ENTER_PRESS);
}
if (this.props.onKeyDown) {
this.props.onKeyDown(event);
this.props.onKeyDown(event, this.triggerQuery);
}
};

Expand Down
Loading

0 comments on commit e3d02fd

Please sign in to comment.