yalabot / angular-foundation

http://pineconellc.github.io/angular-foundation/
Other
1.05k stars 267 forks source link

typeahead-editable doesn't really work #221

Open ProLoser opened 9 years ago

ProLoser commented 9 years ago

I can't really figure out how to use this property. Having it, not having it, doesn't seem to affect the behavior. Hitting enter chooses an item in the list in both cases. I tried also typeahead-editable="true|false" to no avail. There isn't much explanation on how this one is used.

RogelioGaytan commented 9 years ago

I use it like this:

<input type="text" ng-model="seleccionado" typeahead="nombre for nombres.nombre in nombres | filter:$viewValue | limitTo:3" typeahead-editable="false" />

Since its default value is true, i only use it when i need set it to false