selectionStrategy
This property allows the configuration of the selection strategy of the combobox.
The selection strategy controls whether an item should automatically be selected if the user types in an exact match in the combobox's input or not.
The following strategies can be configured:
autoSelectMatch(): Automatically select elements if they are an exact match
manual() (default): Render exact matches as part of the regular dropdown for the user to manually select. If no selection is made, the input is reset to the last selected value.
Example:
combobox {
selectionStrategy.autoSelectMatch()
// OR
selectionStrategy.manual()
}
Content copied to clipboard