Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

md-select should not allow disabled options to be selected #8626

@barunprasad

Description

@barunprasad

Actual behavior:*

  • What is the issue? When using the keyboard, any disabled option in the md-select control can be selected.
  • What is the expected behavior? Any disabled option in the md-select options should not be allowed to be selected either by using a mouse or the keyboard.

CodePen or Steps to reproduce the issue:*

  • CodePen Demo which shows your issue : http://codepen.io/barunprasad/pen/ezNYvQ .
    This codepen is copied from the the demo site of the md-select angular material.
  • Details:In the codepen, States "AK" and "AR" are disabled. When using the mouse, we are not able to select the disabled options which is fine. But when using the keyboard, we are able to select the disabled options.

Angular Versions: *

  • Angular Version:1.5.6
  • Angular Material Version:1.1.0-rc4

Additional Information:

  • Browser Type: * Chrome
  • Browser Version: * 50.0.2661.102
  • OS: * Windows 7 Professional
  • Stack Traces:

Shortcut to create a new CodePen Demo.
Note: * indicates required information. Without this information, your issue may be auto-closed.

Do not modify the titles or questions. Simply add your responses to the ends of the questions.
Add more lines if needed.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions