File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 1
1
export type ComboboxSettings = {
2
2
tabInsertsSuggestions ?: boolean
3
+ /**
4
+ * Indicates the default behaviour for the first option when the list is shown:
5
+ *
6
+ * - `'none'`: Don't auto-select the first option at all.
7
+ * - `'active'`: Place the first option in an 'active' state where it is not
8
+ * selected (is not the `aria-activedescendant`) but will still be applied
9
+ * if the user presses `Enter`. To select the second item, the user would
10
+ * need to press the down arrow twice. This approach allows quick application
11
+ * of selections without disrupting screen reader users.
12
+ * - `'selected'`: Select the first item by navigating to it. This allows quick
13
+ * application of selections and makes it faster to select the second item,
14
+ * but can be disruptive or confusing for screen reader users.
15
+ */
3
16
firstOptionSelectionMode ?: FirstOptionSelectionMode
4
17
scrollIntoViewOptions ?: boolean | ScrollIntoViewOptions
5
18
}
You can’t perform that action at this time.
0 commit comments