angular-ui / bootstrap

PLEASE READ THE PROJECT STATUS BELOW. Native AngularJS (Angular) directives for Bootstrap. Smaller footprint (20kB gzipped), no 3rd party JS dependencies (jQuery, bootstrap JS) required. Please read the README.md file before submitting an issue!
http://angular-ui.github.io/bootstrap/
MIT License
14.3k stars 6.74k forks source link

Open new suggestion list in typeahead #6679

Closed EngMyWorld closed 6 years ago

EngMyWorld commented 6 years ago

In uib-typeahead, I am fetching list of suggestions for typeahead drop down from a service call. On selection of an option by the user, I need to to display a second list of options attached to same text box as the previous one. I can keep a flag and update the list to be returned from the function call returned to the typeahead attribute by setting/resetting the flag in the function against typeahead-on-select.

Please suggest, how can I force the drop down options to open/display again when the user selects the option from first suggestion list?

<input class="form-control" id="typeAhead" type="text" placeholder="Type an address" ng-model="$ctrl.selectedItem" uib-typeahead="items as items.FormattedString for items in $ctrl.querySearch($viewValue)" typeahead-on-select="$ctrl.onSelect($item, $model, $label)">

icfantv commented 6 years ago

Closing this as this project is no longer being maintained, per the README and the ISSUE_TEMPLATE.