material
material copied to clipboard
select(multiple): triggers ng-change on initialization
Actual Behavior:
What is the issue? *when md-select is used withmultiple="true", it initialy triggersng-changeas much times as there is options preselected.What is the expected behavior?ng-changeshould be triggered only when model value changes.
CodePen (or steps to reproduce the issue): *
CodePen Demo which shows your issue:http://codepen.io/rmarius/pen/BzgmGk?editors=0010
Angular Versions: *
Angular Version:1.5.5Angular Material Version:1.1.0
Additional Information:
Browser Type: *ChromeBrowser Version: *52OS: *OSXStack Traces:
Shortcut to create a new CodePen Demo.
Note: * indicates required information. Without this information, your issue may be auto-closed.
Do not modify the titles or questions. Simply add your responses to the ends of the questions. Add more lines if needed.
I'm having the same annoying issue...
This appears to be on issue on:
Angular Versions:
Angular Version: 1.5.8 Angular Material Version: 1.1.1
:+1:
This is a really troublesome issue. It also gets triggered whenever new options are added to an existing md-select, and those options are pre-selected (this includes replacing the whole list of options). According to the docs for ngChange, it should not be evaluated "if the model is changed programmatically".
any news on this? Happening to me also. Not on angular material but a basic input + ngmodel + ngchange
Verified that this is still an issue in 1.1.9 via updated CodePen.