angular-selectize.js icon indicating copy to clipboard operation
angular-selectize.js copied to clipboard

Single select model watches trigger too frequently

Open EvanOxfeld opened this issue 11 years ago • 2 comments

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 avatar Jul 01 '14 18:07 EvanOxfeld

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.

EvanOxfeld avatar Jul 02 '14 13:07 EvanOxfeld

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.

juhani-honkala avatar Dec 18 '14 15:12 juhani-honkala