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';
}
}