material icon indicating copy to clipboard operation
material copied to clipboard

md-select with explicit label doesn't show selected value

Open stevenmiles opened this issue 11 years ago • 4 comments

md-select with an explicit label using md-select-label doesn't show the selected value. It only ever displays the text in the label regardless of the selected value. I was trying to work around #3167 by defining an explicit label and putting flex on it when I discovered this issue.

http://codepen.io/stevenmiles/pen/ZGKoyr

stevenmiles avatar Jun 08 '15 15:06 stevenmiles

I saw this workaround: http://codepen.io/anon/pen/BNRbBq

Sennahoi avatar Jun 09 '15 11:06 Sennahoi

@Sennahoi thanks for the work around. Was very helpful.

stevenmiles avatar Jun 11 '15 15:06 stevenmiles

With an explicit label I feel it should show both the label and the value, there is an option for that layout in the Material design spec under simple menus such as the "When device is locked" example showing both that text and "show all notification content".

Alternatively it would work for an attribute for an always displayed title to be provided.

Anthropic avatar Jun 21 '15 23:06 Anthropic

Closing this task as md-select-label has been removed and replaced with the ability to put an md-select inside and md-input-container to show an external label.

stevenmiles avatar Jul 24 '15 14:07 stevenmiles