Filtering ComboBox (useSearchAutoComplete) #3715
-
I have a Autocomplete Box based on the following example: Passing static items, like in the example, everything works fine. When I pass dynamic items, the filter does not work. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You should use the |
Beta Was this translation helpful? Give feedback.
You should use the
defaultItems
prop rather thanitems
. Usingitems
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