Skip to content

Commit

Permalink
fix(MultiSelect.Filterable): onMenuChange was not being called (#8752)
Browse files Browse the repository at this point in the history
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
Matheus-Rangel and kodiakhq[bot] committed May 25, 2021
1 parent 19df4f7 commit c99e135
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,7 @@ export default class FilterableMultiSelect extends React.Component {
};

handleOnOuterClick = () => {
this.setState({
isOpen: false,
});
this.handleOnMenuChange(false);
};

handleOnStateChange = (changes, downshift) => {
Expand All @@ -233,9 +231,6 @@ export default class FilterableMultiSelect extends React.Component {
this.handleOnMenuChange(true);
}
break;
case stateChangeTypes.blurInput:
this.handleOnMenuChange(false);
break;
case stateChangeTypes.keyDownEscape:
this.handleOnMenuChange(false);
break;
Expand Down

0 comments on commit c99e135

Please sign in to comment.