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

Fix keyboard focus not returning to input after clear #7

Merged
merged 1 commit into from
Feb 1, 2023

Conversation

Pytal
Copy link
Collaborator

@Pytal Pytal commented Feb 1, 2023

Reproduction

  1. Open the dropdown on https://vue-select.org/sandbox.html
  2. Select an option
  3. Tab to the clear button and hit the Enter key

Expected: Focus returns to the search input

Actual: Focus returns to body

The above reproduces when :multiple="true" and an option is deselected

Not applicable when an option is cleared with a mouse click in which case the focus stays on the search input

- "Clear" for single-select
- "Deselect" for multi-select

Signed-off-by: Christopher Ng <chrng8@gmail.com>
@Pytal Pytal added bug Something isn't working accessibility labels Feb 1, 2023
@Pytal Pytal self-assigned this Feb 1, 2023
@Pytal Pytal added this to the 3.21.2 milestone Feb 1, 2023
@Pytal Pytal merged commit 9ef870b into master Feb 1, 2023
@Pytal Pytal deleted the fix/a11y-clear-kb-focus branch February 1, 2023 01:01
@Pytal Pytal mentioned this pull request Feb 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant