Skip to content

Commit

Permalink
fix: select keeps focus after item being selected
Browse files Browse the repository at this point in the history
  • Loading branch information
danielstefanequilobe committed Feb 11, 2022
1 parent 3786847 commit dc8098b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/form/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ const Select = withTheme(
} else {
setSelectedOptions([{ value, label }]);
}
setSelectState(SelectStateEnum.default);
setMenuIsVisible(false);
}
};
Expand Down

0 comments on commit dc8098b

Please sign in to comment.