material icon indicating copy to clipboard operation
material copied to clipboard

md-select: set a value different from selected option impossible in v0.11.1

Open pitchan opened this issue 11 years ago • 3 comments

Hello,

We updated angular material today from 0.10.0 to 0.11.1, performance with IE where improved and it was the goal ^^, but now some of my select box now didn't work correctly ...

So in our md-select we choose for exemple 2px which is the label and we only show 2 the value Now with angular-material v0.11.1 only the label appear and not my value. :(

Here is a working plunker with old angular material version and the master commented: http://plnkr.co/edit/C7Z2VJddqH0X5vFurZLC?p=preview

Just uncomment angular from master and comment the other line to see the issue.

Thanks in advance !

pitchan avatar Sep 28 '15 19:09 pitchan

md-select-label is no longer used. See Breaking Changes for 0.10.1

sazonenka avatar Sep 29 '15 01:09 sazonenka

I changed md-select style like in the documentation with md-input-container but that is not solving the problem. Same result in the plunkr. http://plnkr.co/edit/tDmZLwY3lJ7uh3mczXG2?p=preview

pitchan avatar Sep 29 '15 07:09 pitchan

This was a purposeful breaking change in https://github.com/angular/material/commit/5d9874fb:

BREAKING: md-select-label is no longer used. The select will now always display the selected value as the text in the md-option. This makes for a better UX for users, as otherwise it was possible to confuse them.

topherfangio avatar Sep 29 '15 19:09 topherfangio