EvanOxfeld / angular-selectize.js

Angular Selectize directive for a hybrid textbox + <select> box. Supports ngOptions and two-way bindings.
MIT License
34 stars 16 forks source link

Don't clear out newModelValue or newOptions prematurely #7

Closed ibirman closed 10 years ago

ibirman commented 10 years ago

This fixes a timing bug where the options load before the model and are cleared out before they can be displayed in the select box.

EvanOxfeld commented 10 years ago

Great catch. newModelValue would be incorrectly set to null if the options load on scope some digest after the model.

EvanOxfeld commented 10 years ago

@ibirman I published this to Bower as version 1.2.2.