joaoneto / angular-bootstrap-select

DEPRECATED DON'T USE - Directive to wrap bootstrap-select
105 stars 81 forks source link

Doesn't support track by in ng-option #47

Open tianxu0836 opened 9 years ago

tianxu0836 commented 9 years ago

It not working well with the latest version of the bootstrap select.

if you using ng-option like this: ng-options="c.text for c in timeUnit track by c.value" This piece of code causing problem. function refresh(newVal) { scope.$applyAsync(function () { if (attrs.ngOptions && /track by/.test(attrs.ngOptions)) element.val(newVal); element.selectpicker('refresh'); }); }

ganySA commented 9 years ago

agreed