material icon indicating copy to clipboard operation
material copied to clipboard

md-select value unexpected append to previous value

Open tommy8694 opened this issue 11 years ago • 2 comments

in my case, the md-select select item is triggered by other events. If it triggers again, the label of the md-select shown will be 'appended' to previous value. I didn't put the multiple attribute in the md-select tag. However, the model of the md-select is normal. the label shown in md-select are as follows: first time: label1 second time: label2 , label1, label2 third time: label3, label1, label3, label2

tommy8694 avatar Sep 23 '15 03:09 tommy8694

Please submit a demo showing the behavior you are running into and we will take a look!

rschmukler avatar Sep 24 '15 22:09 rschmukler

http://codepen.io/anon/pen/JYJaKg?editors=101 happens only if a $scope.$watch is bounded after controller constructor. If you remove $timeout wrapper it's work as expected.

garaboncias avatar Oct 09 '15 15:10 garaboncias