Skip to content

Commit a7ff475

Browse files
committed
cr fix
1 parent 13440d9 commit a7ff475

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/Combobox/Common/useCombobox.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,10 @@ export const useCombobox = <T extends Option, V extends string | Option>({
100100
const hasItemsToSelect = itemsToSelect.length > 0;
101101
const trimmedInputValue = inputValue.trim();
102102
const hasCustomValueToSubmit =
103-
!!allowCustomValue && !hasItemsToSelect && trimmedInputValue.length > 0 && onCustomValueSubmit;
103+
!!allowCustomValue &&
104+
!hasItemsToSelect &&
105+
trimmedInputValue.length > 0 &&
106+
!!onCustomValueSubmit;
104107

105108
const handleCustomValueSubmit = (value: string) => {
106109
onCustomValueSubmit?.(value);

0 commit comments

Comments
 (0)