You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using ng-options with selectpicker in angular 1.4 - changing the model value does not correctly update the selectpicker. I think this may be related to this update of ng-options: https://docs.angularjs.org/guide/migration#ngoptions
Specifically it could be caused by the fact ng-options option values are now prefixed with type like number:1string:foobar.
<selectselectpickerng-model="dobMonth"
name="dobMonth"
ng-options="month.id as month.name for month in months"><optionvalue>Month</option></select>
Using track by seems to work around the issue: ng-options="month.id as month.name for month in months track by month.id"
The text was updated successfully, but these errors were encountered:
When using ng-options with selectpicker in angular 1.4 - changing the model value does not correctly update the selectpicker. I think this may be related to this update of ng-options: https://docs.angularjs.org/guide/migration#ngoptions
Specifically it could be caused by the fact ng-options option values are now prefixed with type like
number:1
string:foobar
.Using
track by
seems to work around the issue:ng-options="month.id as month.name for month in months track by month.id"
The text was updated successfully, but these errors were encountered: