We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have everything working with use-select except the search.
use-select
When I use the setSearch function like so:
setSearch
<input type="text" name="search" autoComplete="off" onChange={(e) => { setSearch(e.target.value); }} className="focus:ring-indigo-500 focus:border-indigo-500 block w-full pl-9 sm:text-sm border-gray-300 rounded-md" placeholder="Search" />
visibleOptions always returns an empty array, no matter what I search for.
visibleOptions
Also I try to override the filterFn like so:
const searchFilter = (options, searchValue) => { console.log(options, searchValue); return options; }; const { visibleOptions, selectedOption, getInputProps, getOptionProps, isOpen, setOpen, setSearch, searchValue, } = useSelect({ multi: true, options, value, onChange, optionsRef, filterFn: (options, searchValue) => searchFilter(options, searchValue), });
the searchFilter function is never called (it never logs anything).
searchFilter
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have everything working with
use-select
except the search.When I use the
setSearch
function like so:visibleOptions
always returns an empty array, no matter what I search for.Also I try to override the filterFn like so:
the
searchFilter
function is never called (it never logs anything).The text was updated successfully, but these errors were encountered: