Skip to content

Commit

Permalink
fix(ComboBox): prevent invalid option retention on Enter
Browse files Browse the repository at this point in the history
  • Loading branch information
emyarod committed Apr 28, 2021
1 parent dea6b68 commit a409c86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/components/ComboBox/ComboBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ const ComboBox = (props) => {
event.stopPropagation();
}

if (match(event, keys.Enter)) {
if (match(event, keys.Enter) && !inputValue) {
toggleMenu();
}
},
Expand Down

0 comments on commit a409c86

Please sign in to comment.