Hi! The reason is that typeahead listens to click events on outside elements to close windows with matches but it does so too eagerly. Could you file a bug in https://github.com/angular-ui/bootstrap/issues?state=open
Your use-case is really wired (I mean, I would never trigger clicks like this), but OK, there is something we can do better on the typeahead side, so please file a bug and we are going to fix it. Cheers, Pawel On Wed, Mar 5, 2014 at 6:48 PM, Ben George <[email protected]> wrote: > I have an image, which you can click on to open a file input. When I added > a typeahead on the same page, the opening of the file input stopped working > and the following error on the console: > > Error: [$rootScope:inprog] $apply already in progress > > Here is the code to reproduce: http://plnkr.co/edit/zc4BNm?p=preview > > So what am I doing wrong ? It feels to me a library is not behaving as it > should. In the code you can even try commenting out the jQuery selector of > the image and use getElementById. Still fails. > > -- > You received this message because you are subscribed to the Google Groups > "AngularJS" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/angular. > For more options, visit https://groups.google.com/groups/opt_out. -- AngularJS book: http://www.packtpub.com/angularjs-web-application-development/book Looking for bootstrap-based widget library for AngularJS? http://angular-ui.github.com/bootstrap/ -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.
