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

Unexpected item selection when clearing text query in Select #7061

Open
jandrew44 opened this issue Nov 12, 2024 · 0 comments
Open

Unexpected item selection when clearing text query in Select #7061

jandrew44 opened this issue Nov 12, 2024 · 0 comments
Assignees

Comments

@jandrew44
Copy link

Environment

  • Package version(s):
    @blueprintjs/core: 5.13.0
    @blueprintjs/select: 5.2.4
  • Operating System:
    Windows 10 Home Edition
  • Browser name and version:
    Google Chrome 130.0.6723.117

Code Sandbox

Can be reproduced on the Blueprint docs page:
https://blueprintjs.com/docs/#select/select-component

Steps to reproduce

  1. Open the link mentined above
  2. Open the select component and type 11
    Screenshot_1
  3. Press Tab key so that clear query button becomes an active element
    Screenshot_2
  4. Press Enter

Actual behavior

First element in the filterted list became selected.
Screenshot_3

Expected behavior

Text query cleared, selection is not changed.

Possible solution

Use mouse click on the query clear button instead of Enter key.
However it may be problematic for people with vision disabilities.

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

No branches or pull requests

3 participants