Skip to content

Filtering ComboBox (useSearchAutoComplete) #3715

Answered by devongovett
lienas asked this question in Q&A
Discussion options

You must be logged in to vote

You should use the defaultItems prop rather than items. Using items makes the combo box controlled, so you would need to implement the filtering yourself. See https://reactspectrum.blob.core.windows.net/reactspectrum/26f9662ffb90217c26f906397b1a67b3197e476d/docs/react-aria/useSearchAutocomplete.html#dynamic-collections

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lienas
Comment options

Answer selected by lienas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants