Skip to content

Commit

Permalink
Merge pull request #90 from indec-it/fix/fixSearchSelect
Browse files Browse the repository at this point in the history
fix(selectInput): searcheable
  • Loading branch information
maximilianoforlenza authored Jun 30, 2022
2 parents 9e7d183 + 8281c15 commit cd376da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@indec/react-commons",
"version": "5.1.1",
"version": "5.2.0",
"description": "Common reactjs components for apps",
"private": false,
"main": "index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/components/SelectInput/SelectInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const SelectInput = ({
loadOptions(0, true);
return;
}
if (action.action === selectActions.INPUT_CHANGE) {
if (action.action === selectActions.INPUT_CHANGE && onInputChange) {
setSkip(0);
onInputChange(term);
}
Expand Down

0 comments on commit cd376da

Please sign in to comment.