Skip to content

Commit

Permalink
fix(RefinementList): fix SearchBox reset
Browse files Browse the repository at this point in the history
  • Loading branch information
francoischalifour committed Feb 13, 2019
1 parent 298f5e8 commit 53dfb30
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/RefinementList/RefinementList.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ class RefinementList extends Component {
cssClasses={searchBoxCSSClasses}
templates={this.props.templateProps.templates}
onChange={event => this.props.searchFacetValues(event.target.value)}
onReset={() => this.props.searchFacetValues('')}
onSubmit={() => this.refineFirstValue()}
// This sets the search box to a controlled state because
// we don't rely on the `refine` prop but on `onChange`.
Expand Down

0 comments on commit 53dfb30

Please sign in to comment.