-
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
n-input-number
not focused properly when tabbed into
#244
Comments
n-input-number
not focused properly when tabbed into
I looked into the code a bit, and i think it comes from |
Removing the edit: i found out that you need to press enter to "enter edit mode", but from an accessibility point of view, this is definitely not a good practice. |
The idea is that I want make What you said is right. It doesn't make a lot sense to make it passively activated. |
* fix(input-number): many fixes - Fix `n-input-number` lacks `on-update-value` prop. - Fix `n-input-number`'s value can't be null. - Fix `n-input-number`'s button doesn't work after value is cleared, closes [#251](#251). - `n-input-number` will focus directly, closes [#244](#244). * docs(input-number): fixes * docs
TuSimple/naive-ui version (版本)
2.13.0
Vue version (Vue 版本)
3.1.1
Browser and its version (浏览器及其版本)
Chrome(91.0.4472.114)
System and its version (系统及其版本)
Windows10(20H2)
Node version (Node 版本)
16.2.0
Reappearance link (重现链接)
https://codesandbox.io/s/naive-uin-input-numberfocus-bug-9783q?file=/src/App.vue
Reappearance steps (重现步骤)
Expected results (期望的结果)
We should be able to type the number directly as well as changing the value with arrow keys when focus comes from tabbing.
Actual results (实际的结果)
If the input is focused by tabbing, you cannot type numbers, but you can only change the value by using arrow keys.
Remarks (补充说明)
this causes accessibility and keyboard navigation issues
The text was updated successfully, but these errors were encountered: