Cannot insert new value using angular ui typeahead -
hi have problem angular ui typeahead: pratically copied sample angular ui page, updated latest version of every library.
<input type="text" ng-model="vm.censimento.quartiere" placeholder="prima selezionare il comune" typeahead="address address in vm.quartieri" typeahead-loading="loadinglocations" class="form-control" /> <i ng-show="loadinglocations" class="glyphicon glyphicon-refresh"></i>
in angular page sample able select items list , add together leave new text in input when exit textbox, in application add together something, first item automatically selected , when leave textbox value of selected item override text wrote. how can avoid this? need take list , add together new item form same control.
luca
finally found solution: able insert text in textbox have add typeahead-focus-first="false"
: default value true , select automatically first item. suppose in version of angular ui bootstrap took sample default value opposite.
angular-ui angular-ui-typeahead
No comments:
Post a Comment