Angularjs typeahead not displaying the options on 2nd input focus

126 Views Asked by At

I have a dropdown control and a txt input control which is bound to typeahead control. Initially when I'll display category

enter image description here

As soon as I get to the input box for filtering and the control gets the focus I'm able to get the results:

enter image description here

As a next step I'll change the filter value to Priority

enter image description here

But when I click the input textbox nothing happens until I'll enter some value and clear it, please check the gif at this url https://i.gyazo.com/d95937ade5b9c05ec3adf169c7533d50.mp4

The input textbox has this markup :

<input name="states" ng-trim="false" id="states" type="text" placeholder="Start Filtering..." ng-model="selected" typeahead-editable="false" uib-typeahead="state for state in states | filter:$viewValue | limitTo:8" class="form-control" typeahead-on-select="onSelect($item, $model, $label)" typeahead-min-length="0">
0

There are 0 best solutions below