leocaseiro / angular-chosen

AngularJS Chosen directive is an AngularJS Directive that brings the Chosen jQuery in a AngularJS way
http://leocaseiro.github.io/angular-chosen/
MIT License
682 stars 248 forks source link

Issue with resetting all selections #243

Closed bgadiel closed 7 years ago

bgadiel commented 7 years ago

Hi Leo, I used to reset all user selection by updating the model to an empty array. I suspect that this no longer works with newer versions.

Any ideas on what is the recommended way to reset selections?

https://plnkr.co/edit/80Et38V3CpE2i1LNfp2m?p=preview

Angular-chosen 1.7.0 AngularJS 1.6.2

Thanks.

leocaseiro commented 7 years ago

Hi @bgadiel, thanks for reporting that.

I confirmed this is a bug. I've tried some techniques, but I'll probably need to investigate what is the issue.

Please, use angular-chosen-localytics@1.4.2 for the time being.

I'll check what went wrong since 1.4.3