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

Can't use input when model has no value #30

Open w33ble opened 9 years ago

w33ble commented 9 years ago

Issue:

Angular injects a ? record as a default value in a select when using ng-options. This is accounted for when the model or options update (see here), but not when the directive is first loaded.

The result is that the ? record is selected by default, and you can't type in the input until you delete the selected value. This is a weird UI, as the user can see all the options available, and can use arrow keys to navigate, but can not type, even though the input is empty and there is a blinking cursor.

screenshot 2014-12-30 09 35 40

Demo:

http://plnkr.co/edit/pjsMFK?p=preview

This is the demo from the README, but with the default model value commented out.