-
Fluent UI v2 Combobox (web components) drops |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
In Fluent UI v2 Web Components, the To replicate the autocomplete functionality:
However, note that
By implementing custom filtering and utilizing the |
Beta Was this translation helpful? Give feedback.
In Fluent UI v2 Web Components, the
Combobox
component has deprecated theautocomplete="both"
attribute, which previously provided native filtering of options based on user input. This change necessitates implementing custom filtering logic to achieve similar behavior.To replicate the autocomplete functionality:
Implement Custom Filtering: Attach an event listener to the
input
event of theCombobox
. Within this handler, filter the available options based on the user's input and update the displayed options accordingly.Example: