Async Filtering for Combobox #32271
mathis-m
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Use Async Combobox Filter
An example generic implementation for
Combobox
component to support filtering in the backend.The main motivation on this is that there is no OOTB implementation for an async search with result list component. I do not want to implement all magic again that is why I opted to use the
Combobox
component as base.While implementing this I found some weird behaviours of the
Combobox
component, e.g.// clear selection for single-select if the input value no longer matches the selection
Or resizing the combobox according to it's content (see example inline tags).
This is the initial implemation and may still miss some things.
Playground: https://stackblitz.com/edit/qxuhm6?file=src%2Fexample.tsx
Would be great if fluentui had OOTB support for async combobox.
Are there any plans to provide a component that works with asynchronous use cases of searching and making results selectable?
Cheers
Beta Was this translation helpful? Give feedback.
All reactions