-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Error message when using ng-focus and typeahead at the same time #1773
Comments
@shayanelhami could you please provide a minimal reproduce scenario using http://plnkr.co/? From your description it is not clear where the |
Here you are: http://plnkr.co/DqTwVPQY54DUj9QI2HH9 Press 'A' select an item by mouse and keep an eye on the errors: |
Hmm, seems like there is a similar issue opened already on the AngularJS side: I'm probably going to remove this focusing thing as it causes other troubles but it would be cook to get to the bottom of this one. |
Used timeout to avoid $rootScope:inprog error
Oh! please don't remove the focusing. It's very helpful. |
I am having the same error here and need to know what is the fix that will be merged:
Keeping focus looks a better solution to keep tabbing to next field when using keyboard. I will patch my code with second solution for now. |
If user has a ng-focus directive and tries to select something by mouse from typeahead popup the following error occurs:
[$rootScope:inprog] $apply already in progress
The origin of the error seems to be element[0].focus(); (commit 04a21e3 line 161)
The text was updated successfully, but these errors were encountered: