Commit 51b5cbe1 by skynono Committed by GitHub

fix: prevent combobox from over-filtering options on focus (#4829)

parent 3e588b4d
......@@ -176,7 +176,7 @@ export function ComboboxInput({
if (!open) setOpen(true)
}}
onFocus={() => {
setSearchValue(allowCustomValue ? value : '')
setSearchValue(allowCustomValue && !selectedOption ? value : '')
setOpen(true)
}}
onKeyDown={handleKeyDown}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment