components icon indicating copy to clipboard operation
components copied to clipboard

md-select tabindex issue

Open oryam opened this issue 9 years ago • 1 comments

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

oryam avatar Mar 07 '17 14:03 oryam

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.