Skip to content

Commit fe9d56a

Browse files
fix(ComboBox): prevent invalid option retention on Enter (#8476)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
1 parent bffc700 commit fe9d56a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react/src/components/ComboBox/ComboBox.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ const ComboBox = (props) => {
267267
event.stopPropagation();
268268
}
269269

270-
if (match(event, keys.Enter)) {
270+
if (match(event, keys.Enter) && !inputValue) {
271271
toggleMenu();
272272
}
273273
},

0 commit comments

Comments
 (0)