Skip to content

Commit 3120c39

Browse files
authored
fix: check explicitly if typedValue is a string (#1378)
1 parent d2b2305 commit 3120c39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ComboboxInput/ComboboxInput.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const ComboboxInput = React.forwardRef(({
7676
if (textInputRef?.current) {
7777
textInputRef.current.value = preSelectedOption?.text || '';
7878
}
79-
} else if (typedValue) {
79+
} else if (typeof typedValue === 'string') {
8080
setFilterString(typedValue);
8181
if (textInputRef?.current) {
8282
textInputRef.current.value = typedValue;

0 commit comments

Comments
 (0)