angular-ui / ui-select2

AngularJS wrapper for select2 (deprecated, use angular-ui/ui-select)
https://github.com/angular-ui/ui-select
MIT License
595 stars 444 forks source link

This (!current)return; need to remove . otherwise the select can't be reset .Thanks #306

Open DaqingFeng opened 7 years ago

DaqingFeng commented 7 years ago

// Watch the model for programmatic changes scope.$watch(tAttrs.ngModel, function (current, old) { if (current === old) { return; } controllerRender(); }, true); var controllerRender = function () {