Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
w33ble opened this issue Dec 30, 2014 · 0 comments
Open

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

w33ble opened this issue Dec 30, 2014 · 0 comments

Comments

@w33ble
Copy link

w33ble commented Dec 30, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant