-
Notifications
You must be signed in to change notification settings - Fork 12
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
Focus Zone, ArrowVertical does not take into account input elements that have step defined #258
Comments
Hi! Thanks for taking the time to report this, do you mind creating adding a reproduction of the issue on codesandbox.io or stackblitz.com? |
Hi! I hope this helps, since I don't have either |
So to have stepping of the number input working again with up and down arrow key, remove FocusKeys.ArrowVertical |
@camertron is going to take a quick look to see if we can validate this bug by looking at the test suite and we can go from there. |
Hey @1951FDG, I'm not sure what you mean by "remove FocusKeys.ArrowVertical." However I think you were correct to identify if (activeElement instanceof HTMLInputElement && activeElement.type === 'number') {
return true
} |
Hey @camertron, cool, I'll look into this as soon as I'm back next year, and maybe submit a pull request for it to be reviewed. |
Hi all! 👋 Just wanted to check-in to see if this issue is still relevant and close it, if not 👀 |
Hi there, if I make the necessary changes, and submit a pull-request, will it be merged, or are these changes to be made on a per use case. |
PRs are always welcome, provided there is a motivating use case and the code is clean and well tested 👍 |
Hi! This issue has been marked as stale because it has been open with no activity for 180 days. You can comment on the issue or remove the stale label to keep it open. If you do nothing, this issue will be closed in 7 days. |
For ArrowVertical does not take into account input elements of type "number" that have step defined, meaning it overrides the default behaviour making stepping with up and down key no longer working.
I think this can be fixable by adding some code to:
behaviors/src/focus-zone.ts
Line 261 in 92e06b5
The text was updated successfully, but these errors were encountered: