Skip to content

Commit

Permalink
fix(searchForFacetValues): disable SearchBox shortcuts
Browse files Browse the repository at this point in the history
Before this commit, hitting a keyboard default shortcut
like `/` or `s` would try to focus the SearchBox of a
RefinementList if any.

fixes #1920
  • Loading branch information
vvo committed Jan 26, 2017
1 parent 8480edd commit 497bacb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@
"engines": {
"node": "^6.x.x || ^7.x.x"
},
"jest": {
"notify": true
},
"license": "MIT",
"author": {
"name": "Algolia, Inc.",
Expand Down
1 change: 1 addition & 0 deletions packages/react-instantsearch/src/components/List.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ class List extends Component {
this.setState({query: value});
searchForFacetValues(value);
}}
focusShortcuts={[]}
translate={translate}
onSubmit={e => {
e.preventDefault();
Expand Down

0 comments on commit 497bacb

Please sign in to comment.