question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

tabindex doesn't work on md-checkbox

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
devversioncommented, Mar 5, 2017

Not sure. I see that it can cause confusion here, but I think the tabIndex is in camel-cause because when using an input binding, you are actually setting the native tabIndex property.

That’s why for native inputs you can also do

<input [tabIndex]="2">

Not sure if we should support both.

0reactions
angular-automatic-lock-bot[bot]commented, Sep 5, 2019

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

html - Checkbox tab index not working when set to hidden with ...
My dropdown menu doesn't take in horizontal and there is a space between the dropdown buttons. Any one? 2 · How to apply...
Read more >
tabindex is not working on check box, How To? #2474 - GitHub
Removing the visibility : hidden makes the checkbox and radio boxes focusable. But you don't see that it's focused. So you need to...
Read more >
Trouble Tabbing To Tabs and Cheeky Checking Checkboxes
Just to level set here, this is not expected behavior. If a screen reader were not running, a tab with a -1 tabindex...
Read more >
CheckBox.TabIndex property (Access) - Microsoft Learn
Syntax. expression.TabIndex · Remarks. You can set the TabIndex property to an integer that represents the position of the control within the tab ......
Read more >
tabIndex missing on CheckBox? - jQuery EasyUI
is there a key that toggles the checkbox, like the standard HTML checkbox the spacebar will toggle it. this doesn't seem to work ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found