-
Notifications
You must be signed in to change notification settings - Fork 933
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Select item with tab #1326
Comments
I support, I also faced the fact that I need to make a choice on TAB |
Will track the 1.2 behaviour update here #1365. Meanwhile to work around, use |
Is the tab change not out on function stateReducer(
state: DownshiftState<any>,
changes: StateChangeOptions<any>
): StateChangeOptions<any> {
switch (changes.type) {
case Downshift.stateChangeTypes.blurInput:
if (state.highlightedIndex != null) {
return {
...changes,
inputValue: state.selectedItem,
};
}
}
return changes;
} I'm guessing that Do you know what I'm doing wrong with my state reducer? |
In 7.0.1 useSelect you should be able to select by Tab if you have a highlighted item, without the need to add anything extra. @qwbarch |
Is the tab select behaviour not the same for useMultipleSelection in v7? |
If you are referring to the useSelect usage, yes, now you can also select with Tab starting with v7. |
downshift
version: 6.1.7Problem description:
According to aria-practices Listbox Popup should "Sets the value to the content of the focused option in the listbox" when pressing Tab. Currently useSelect does not select the item.
Suggested solution:
Select the item when pressing tab.
The text was updated successfully, but these errors were encountered: