-
Notifications
You must be signed in to change notification settings - Fork 6.8k
tabindex doesn't work on md-checkbox #3368
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
Comments
You mentioned in the issue that you are using For those components, just using |
Whoops..I had the wrong title down...it's actually md-checkbox that tabindex doesn't work. I also corrected the example to have a lowercase tabindex |
WRT to the focus indication, it is being tracked via #3102. |
@devversion So I just came back to this and see that it does indeed work with the camelcase tabIndex. Is that the plan to keep it like that? I'm glad that it works, but given that the spec for tabindex is all lowercase, I wonder if that will cause additional confusion (beyond just myself). |
Not sure. I see that it can cause confusion here, but I think the That's why for native inputs you can also do <input [tabIndex]="2"> Not sure if we should support both. |
@tinayuangao are you able to confirm if this is an issue? |
It's fixed by #3403. Now checkbox has focus indicator and |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug, feature request, or proposal:
I am not able to disable tabbing to a md-checkbox.
What is the expected behavior?
<md-checkbox tabIndex="-1"></md-checkbox>
should not be skipped over when tabbing through a form.What is the current behavior?
The checkbox receives focus when tabbing through the form. In addition, there isn't any visual indication that the checkbox has focus, so it's difficult to tell where I am in the form unless I press the spacebar to toggle that particular entry.
What are the steps to reproduce?
http://plnkr.co/edit/0P5w3xAmYWhx4ZrEoWUU?p=preview
What is the use-case or motivation for changing an existing behavior?
I have checkbox that I want on the form, but not to be tabbed to.
Which versions of Angular, Material, OS, browsers are affected?
Tested on Angular 2.4.8, Angular/Material 2.0.0-beta.2, Chrome
Is there anything else we should know?
That more or less covers it.
The text was updated successfully, but these errors were encountered: