fix: prevent combobox from over-filtering options on focus (#4829)
This commit is contained in:
+1
-1
@@ -176,7 +176,7 @@ export function ComboboxInput({
|
|||||||
if (!open) setOpen(true)
|
if (!open) setOpen(true)
|
||||||
}}
|
}}
|
||||||
onFocus={() => {
|
onFocus={() => {
|
||||||
setSearchValue(allowCustomValue ? value : '')
|
setSearchValue(allowCustomValue && !selectedOption ? value : '')
|
||||||
setOpen(true)
|
setOpen(true)
|
||||||
}}
|
}}
|
||||||
onKeyDown={handleKeyDown}
|
onKeyDown={handleKeyDown}
|
||||||
|
|||||||
Reference in New Issue
Block a user