material icon indicating copy to clipboard operation
material copied to clipboard

When using md-select with model and the initial model value is an integer - causes form model to be dirty

Open dani3l opened this issue 11 years ago • 2 comments

Hi guys I noticed that when I use md-select inside a form with integer value it causes both the select and form to be dirty. This doesn't happend if the value is a string.

Not sure it it's an angular or material bug but I have no time to check it, so I $timeout(form.$setPristine) for now.

I'm using [ngMaterial v0.10.1-rc2-master-d6a938e], [angular v1.4.4-build.4117+sha.1cb6bd4]

dani3l avatar Jul 19 '15 16:07 dani3l

Could reference #3933

rschmukler avatar Sep 10 '15 17:09 rschmukler

Per this demo this appears to be working on master. Please open a new issue with a demo if this is not the case.

rschmukler avatar Nov 12 '15 19:11 rschmukler