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

Single select model watches trigger too frequently #8

Open EvanOxfeld opened 10 years ago

EvanOxfeld commented 10 years ago

Selecting an option in a single select changes the model first to the option's value, then to null, then back to the option's value. Model watch behavior should match the built-in Angular select directive.

EvanOxfeld commented 10 years ago

580c68a fixes the most common cases that caused watches on the model to fire too frequently. That said, I'm still leaving this issue open until the behavior matches the built-in select directive.

juhani-honkala commented 9 years ago

Unfortunately this behaviour is still evident even in the basic case: http://plnkr.co/edit/4BuWxF?p=preview . When clicked for the first time, selection is changed three times (second one is null) with a side effect that dropdown stays open after.