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

Tabs possibly cause Typeahead ng-model to break in Bootstrap UI #6580

Open iosonosempreio opened 7 years ago

iosonosempreio commented 7 years ago

In AngularJS with Bootstrap UI I realised that if i put a typeahead (drawing from a static array) within a tab, the model of the former gets broken and I'm not able, for instance, to reset it. It just works the first time I try to reset, then it is like the value you select within the typeahead get detached from the model you gave to it.

Open the console to see the function that resets the model gets called, but the act of resetting it gets done only once.

Here the running code: https://jsfiddle.net/74exww04/497/

Here's the issue on Stackoverflows: https://stackoverflow.com/questions/44682473/tabs-possibly-cause-typeahead-ng-model-to-break-in-bootstrap-ui