Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

md-autocomplete displays "true" if model is undefined #2515

Closed
uriva opened this issue Apr 23, 2015 · 3 comments
Closed

md-autocomplete displays "true" if model is undefined #2515

uriva opened this issue Apr 23, 2015 · 3 comments
Assignees
Milestone

Comments

@uriva
Copy link

uriva commented Apr 23, 2015

Example: http://plnkr.co/edit/SyWrnP4dn57JuPxbVoJm?p=preview

In ng-repeats and such it is common for me to use local variables which are un-initialized. This requires me to initialize each and every one of them.

Using ng-init is an option, but I think it would be better to let the directive initialize them with empty string.
I have a usecase where ng-init does not work for some reason. Not sure why.

@uriva uriva changed the title autocomplete displays "true" if model is undefined md-autocomplete displays "true" if model is undefined Apr 23, 2015
@ThomasBurleson ThomasBurleson added this to the 0.9.0 milestone Apr 23, 2015
@ThomasBurleson ThomasBurleson self-assigned this Apr 23, 2015
@epelc
Copy link
Contributor

epelc commented Apr 23, 2015

+1 I was wonder why my tests with address auto completion started out as true.

@ekaitzht
Copy link

+1 I am trying to reproduce the demo and it's displaying 'true' instead the placeholder.

@ThomasBurleson
Copy link
Contributor

This can be reproduced in the Basic Usage online demo if these two lines are commented out:

//    self.selectedItem  = null;
//    self.searchText    = null;

This will be fixed shortly.

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

No branches or pull requests

4 participants