Skip to content
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

Selecting an address using a keyboard. #26

Open
rmcveigh opened this issue Apr 16, 2024 · 1 comment
Open

Selecting an address using a keyboard. #26

rmcveigh opened this issue Apr 16, 2024 · 1 comment

Comments

@rmcveigh
Copy link

rmcveigh commented Apr 16, 2024

We recently conducted user testing on one of our websites and encountered an issue that appears to affect the accessibility of the select component. During form navigation, some test users utilized the 'tab' key to move from one element to another. However, when they attempted to select their address from the Lob autocomplete, they were unable to tab to the address option they wanted to use. Instead, they were redirected from our site to the Lob website. (See gif below)

After researching the code-base, I found intentional window location changes. Is there any way to prevent redirection? The redirect happens within the handleChange function which is used in the onChange event.

Based on the comments, it seems that the onChange event is intentionally defined after the user has supplied properties to avoid any unintended damage to the functionality. Is there a way to configure the component so that users can select their address using their keyboard?

Recording_2024-03-26_at_15 08 16

@rmcveigh rmcveigh changed the title Tabbing into the Select Selecting an address using a keyboard. Apr 16, 2024
@ryancausey
Copy link

ryancausey commented May 3, 2024

I also observed this when typing in an address and hitting enter, assuming it would select the first address autocomplete result. Instead it redirects to the LOB marketing page.

I am using the Address Autocomplete Search Bar component.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants