mgcrea / angular-strap

AngularJS 1.2+ native directives for Bootstrap 3.
mgcrea.github.io/angular-strap
MIT License
5.73k stars 1.38k forks source link

Typeahead issue with ng-model-options='{ debounce: 1000 }' #2171

Closed bryantlikes closed 5 years ago

bryantlikes commented 8 years ago

If you set this option on the input the typeahead uses, then the typeahead will show the options again after the delay is over. This is because the delay causes the watch on the attr.ngModel to fire 1 second (in the case) after the select method has finished. This in turn calls the update method.

EDIT: Also noticed a similar issue with the async options and it can be seen on the demo page. There is also a stack overflow question on the issue as well.

DaleWebb commented 8 years ago

Could you attach a plunkr with the problem for this?

bryantlikes commented 8 years ago

Here you go: http://plnkr.co/edit/tJjx5GYTadBejZ3hCxf6?p=preview

However, I think it is probably the same issue as https://github.com/mgcrea/angular-strap/issues/2159

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

lock[bot] commented 5 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.