Skip to content

Commit 7e86869

Browse files
committed
chore: fix combobox logic
1 parent 97ee306 commit 7e86869

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/SelectInput/Content/SingleContent.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,12 @@ const SingleContent = React.forwardRef<HTMLInputElement, SharedContentProps>(
2626
return activeValue;
2727
}
2828

29+
if (combobox) {
30+
return searchValue;
31+
}
32+
2933
return showSearch ? searchValue : '';
3034
}, [combobox, activeValue, inputChanged, triggerOpen, searchValue, showSearch]);
31-
console.log('>>>', showSearch, searchValue, mergedSearchValue);
3235

3336
// Extract option props, excluding label and value, and handle className/style merging
3437
const optionProps = React.useMemo(() => {

0 commit comments

Comments
 (0)