Skip to content

Commit 5c6bd76

Browse files
author
Andrew Leach
committed
Update wording
1 parent 895654a commit 5c6bd76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ const combobox = new Combobox(input, list, {tabInsertsSuggestions: true})
9090
These settings are available:
9191

9292
- `tabInsertsSuggestions: boolean = true` - Control whether the highlighted suggestion is inserted when <kbd>Tab</kbd> is pressed (<kbd>Enter</kbd> will always insert a suggestion regardless of this setting). When `true`, tab-navigation will be hijacked when open (which can have negative impacts on accessibility) but the combobox will more closely imitate a native IDE experience.
93-
- `firstOptionSelectionMode: FirstOptionSelectionMode = 'none'` - This option dictates the default behaviour when no options have been selected yet and the user presses <kbd>Enter</kbd>. The following options of `FirstOptionSelectionMode` will do the following:
93+
- `firstOptionSelectionMode: FirstOptionSelectionMode = 'none'` - This option dictates the default behaviour when no options have been selected yet and the user presses <kbd>Enter</kbd>. The following values of `FirstOptionSelectionMode` will do the following:
9494
- `'none'`: Don't auto-select the first option at all.
9595
- `'active'`: Place the first option in an 'active' state where it is not selected (is not the `aria-activedescendant`) but will still be applied if the user presses `Enter`. To select the second item, the user would need to press the down arrow twice. This approach allows quick application of selections without disrupting screen reader users.
9696
> **Warning** Screen readers will not announce that the first item is the default. This should be announced explicitly with the use of `aria-live` status

0 commit comments

Comments
 (0)