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.

select: select option if there is only 1 option #9626

@jobo26

Description

@jobo26

Feature request: automatically select option from md-select if there is just 1 option.
Maybe this could be an optional setting on the directive.

Actual Behavior:

  • What is the issue? *
    I want to improve the usability of my form by pre-selecting values from md-select items if they only have 1 option.
  • What is the expected behavior?

CodePen (or steps to reproduce the issue): *

Angular Versions: *

  • Angular Version:
  • Angular Material Version:

Additional Information:

  • Browser Type: *
  • Browser Version: *
  • OS: *
  • Stack Traces:

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions