Skip to content

md-select tabindex issue #3474

Closed
Closed

Description

Bug, feature request, or proposal:

For <md-select/>, tabindex attribute value is set to 0.

What is the expected behavior?

tabindex should have the given value.

What is the current behavior?

It is rendering tabindex="0" when using <md-select tabindex="6"></md-select>

Which versions of Angular, Material, OS, browsers are affected?

  • Angular 2.4.9
  • Material 2.0.0-beta.2

Is there anything else we should know?

Issue in the following lines:

export class MdSelect implements AfterContentInit, ControlValueAccessor, OnDestroy {
  /** Returns the correct tabindex for the select depending on disabled state. */
  _getTabIndex() {
    return this.disabled ? '-1' : '0';
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

AccessibilityThis issue is related to accessibility (a11y)P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions