Components: MdSelect inside disabled fieldset should be disabled

Created on 23 May 2017  路  7Comments  路  Source: angular/components

Bug, feature request, or proposal:

Bug

What is the expected behavior?

A md-select element should be disabled if it is inside a disabled fieldset like other fields such as input, textarea, ...

What is the current behavior?

You can use the md-select component even if its parent fieldset is disabled.

What are the steps to reproduce?

http://plnkr.co/edit/bXjtAGhH2jpM4jrSB3Pg?p=preview

What is the use-case or motivation for changing an existing behavior?

When you wish to disable a full form it is very convenient to use a disabled fieldset. It will in fact disable everything and removes the need to disable each single field one by one.

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

Angular : "@angular/core": "4.1.3",
Material : "@angular/material": "2.0.0-beta.5",
Typescript : "typescript": "^2.3.3"

OS: OSX & Windows
Browsers : All

Is there anything else we should know?

None that I know of!

P5 materiaform-field materiaselect feature

Most helpful comment

Will this be resolved by https://github.com/angular/angular/issues/13856?

The Material Select component is different than the other form control components because it does not render an actual <select> element. I think we'll need to add support for this in the Material library itself.

All 7 comments

Related to #2763

Will this be resolved by https://github.com/angular/angular/issues/13856?

The Material Select component is different than the other form control components because it does not render an actual <select> element. I think we'll need to add support for this in the Material library itself.

I think all related issues have been funneled towards https://github.com/angular/angular/issues/35309 -- do I understand correctly that resolving that will fix this as well?

Closing this since the underlying issue is tracked on https://github.com/angular/angular/issues/35309

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._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Miiekeee picture Miiekeee  路  3Comments

xtianus79 picture xtianus79  路  3Comments

3mp3ri0r picture 3mp3ri0r  路  3Comments

alanpurple picture alanpurple  路  3Comments

vitaly-t picture vitaly-t  路  3Comments