Closed borispac closed 7 years ago
I am also having a similar issue. I have a couple of material selects with all the same values. they are all the same ng-model. when you first change one they all update. but if i go back and try to change again none of them update though the model does.
Your quick fix is actually pretty good.
The .trigger('change')
only really exists to make place-holder texts work well, so filtering out SELECT tags isn't a problem.
Description
I found an error with the dropdown material-select when used with material-select
Steps to reproduce
In the controller
The dropdown is supposed to be select with the default value vm.user.userResp1 and be bound to it
What exactly does happens
The ng-model linked value is empty and the value is not selected
Solution found
After few hours of research, i found a quick fix. The problem came from the directive 'ui.materialize.ngModel' (line 92 angular.materialize.js)
Line 106 i added a check on the tagName :
After that its working perfectly, is that an error known to you ?
Hope it helps,