We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e287d8b commit 8bd42b6Copy full SHA for 8bd42b6
src/components/fields/ComboBox/ComboBox.tsx
@@ -325,7 +325,7 @@ export const ComboBox = forwardRef(function ComboBox<T extends object>(
325
if (e.key === 'Enter' && !props.allowsCustomValue && state.isOpen) {
326
const option = [...state.collection][0]?.key;
327
328
- if (option) {
+ if (option && selectedKey !== option) {
329
props.onSelectionChange?.(option);
330
331
e.stopPropagation();
0 commit comments