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

Use evalAsync instead of timeout on init #213

Closed liorcode closed 8 years ago

liorcode commented 8 years ago

evalAsync runs after the digest and before the browser render. This will help avoid the flicker that happens in the initialization, when you see the browser rendering the select and then rendering the "chosen" (see #189)

leocaseiro commented 8 years ago

Hi @liorch88, thank you for your PR. It seems pretty straight forward.

I'm going to run some tests and I'll release soon.

leocaseiro commented 8 years ago

Thank you so much! I'm realising the 1.5.0 with this fix!