-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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: add proper tabindex when filterable #2334
base: main
Are you sure you want to change the base?
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/tusimple/naive-ui/DBX6EhbUz9J8rrULW3nbJHneC7V6 |
Codecov Report
@@ Coverage Diff @@
## main #2334 +/- ##
==========================================
- Coverage 63.40% 63.39% -0.02%
==========================================
Files 946 946
Lines 19261 19266 +5
Branches 4890 4893 +3
==========================================
+ Hits 12212 12213 +1
- Misses 5881 5885 +4
Partials 1168 1168
Continue to review full report at Codecov.
|
You can open select by pressing enter if it's focused. I make lazy focus intentionally. Is the behavior problematic? |
For normal selects it's fine but if the select is filterable I expect the input to be "tabbable" because I just want to type and select the input that matches my input. In my case I have a select that lets you pick your city from Google Places API. The options are requested on demand as the user types and there shouldn't be the possibility to enter free text. |
Can you rebase it? I want to see vercel preview. |
@07akioni here you go 😊 |
Normal select's tab focusing is broken. |
Hm, what's not working for you? I can still focus the tab and press enter to open it. |
@07akioni sorry for the issue I missed that before. I think now it works fine and whenever a select is filterable you can tab properly and can start immediately typing. |
Okay, sure. Any suggestion for the name of the prop? 😊 |
Maybe |
Currently, when a
Select
is filterable you cannot reach the filter via tab control. This PR will add a propertabindex
to the inputs.