Given you have supplied options.
When you expect the options to display.
They display correctly.
Given you have entered corresponding search text only matching options show as available.
Given you have selected an option, When you focus on the selected option, Then the search input is focused with the text of the previous option as the search text
Given there are matching options, when you click on an option, or press enter the corresponding option will selected.
When you have selected an option, Then the selected option is set in the parent.
Given you have selected an options. When you click the 'deselect' icon, the selected option is removed.
Given you have deselected an option, The selected option is deleted in the parent component or instance.
When matching options are displayed, You can move to an option for selection by clicking the up or down arrows.
Given there are matching options, And you are either navigating options, Upon hitting the Enter key The corresponding option is selected.
Given there are matching options, When you click enter without navigating Then the first matching option is selected.
Given you are focused on the search input, when you click the Tab or Escape keys, Then the options are dismissed and you move away from the seach input.
- Required
- Tab Index
- The element Id
- The element name
- Default value for the search input