-
Notifications
You must be signed in to change notification settings - Fork 540
Error: $apply already in progress #406
Comments
I am seeing this error as well. I don't have this issue with the old version. So I guess this might be because recent changes? |
Are you using |
Yep, when i comment another ng-focus the problem is solved. 2015-03-23 14:32 GMT-03:00 Michael Benford [email protected]:
Atentamente, Christian Carrillo C. |
What do you mean by "another ng-focus"? Are you using more than one at once? |
Same issue. |
I am seeing a similar issue. The first time the input is focussed, it is fine. Any subsequent focus's seem to trigger the '$apply is already in progress' error. My stack trace is slightly different:
I am using Angular v1.2.16, ngTagsInput v2.3.0 and jQuery v2.1.3. |
@jaybayley ngTagsInput requires Angular 1.2.24+. Please update to any version between 1.2.24 and 1.2.28. That also applies to anyone else here using some version of Angular below 1.2.24. |
Thanks @mbenford for the quick response, upgrading to 1.2.28 fixed the issue for me. it would be useful to update the bower config, it is showing as requiring >=1.2.1, otherwise I would have got there on my own :) |
@jaybayley I didn't know the bower config was outdated. Sorry for that :( |
No problem at all, I hugely appreciate your quick response, for making an awesome plugin for us all to enjoy, and for continuing to provide support 👍 |
Any update on this? |
Had the same issue of this thread and I confirm that upgrading Angular solves the problem. |
@christiams @cheonhyangzhang could you guys confirm that this issue is solved by updating Angular? |
@mbenford Hi Sorry I have been busy recently. I have verified that I was using angular 1.2.16. After upgrading to angular 1.2.24. The error has gone. So 1.2.24 is working for me. Not sure if it is the least working version. |
@christiams Any update on this? |
Hi @mbenford I am facing the same issue, the error is occuring on the below line of code host: {
click: function() {
if (scope.disabled) {
return;
}
input[0].focus();
}
} I can confirm that I am using the newer version of angular (v1.3.0) and jQuery (2.1.1). Also I am not using ng-focus. |
hi @mbenford, angularjs version 1.2.24 to 1.2.8 is not working with my project template, the version of workable angularjs is 1.2.0 and 1.2.4. Is there any other work around. |
I am facing this with version 2.3.0 and AngularJS 1.2.9 with no extra configurations. Error occurs while focusing to input or removing any tags by mouse. Any workarounds? Used it with params
My scripts and load order:
Error that can be seen in console
|
Hi everyone. |
how? @oleksiyo |
@oduwole @makallio85 @umeshv Could you guys provide a plunker or something showing your problems? @oleksiyo Angular needs to be updated to at least v1.2.24 because a bug in |
Hi @mbenford, this Plunker shows the problem with 1.3.15: http://plnkr.co/edit/CgiIUOWWwsny13O9GvOR?p=preview. It seems like the second focus event triggers the error. Focus, blur, focus and boom. If not, adding and removing a tag seems to do it as well.
Thanks. |
Hello It happens only when you first click on the input tag on smartphones such as the iPhone. Official as there is 1.3.0, such as not officially support description, but how about you plan when it is officially supported around? thank you |
@mbenford solved it. upgrade angularjs to 1.2.24 |
I have same issue. I'm using angular 1.4.7 |
I have same problem. I have fixed it for Ng2 by upgrading but for Angular 1.5 i don't want to upgrade, Here is my error : |
This issue was selected to be spring-cleaned by a script. More information can be found here. If anyone thinks this was a mistake and this issue should be reopened, please leave a message below explaining why. Before doing so, please consider reading the CONTRIBUTING file. |
Error: [$rootScope:inprog] $apply already in progress
http://errors.angularjs.org/1.3.14/$rootScope/inprog?p0=%24apply
at REGEX_STRING_REGEXP (VM3156 angular.js:63)
at beginPhase (VM3156 angular.js:14755)
at Scope.$get.Scope.$apply (VM3156 angular.js:14499)
at getFocus (VM3232 security.js:731)
at Object.link.scope.eventHandlers.host.click (VM3221 ng-tags-input.js:286)
at $parseFunctionCall (VM3156 angular.js:12345)
at VM3161 angular-touch.min.js:12
at Scope.$get.Scope.$eval (VM3156 angular.js:14401)
at Scope.$get.Scope.$apply (VM3156 angular.js:14500)
at HTMLDivElement. (VM3161 angular-touch.min.js:12)
to be exact it gets thrown at :
host: {
click: function() {
input[0].focus();
}
}
This error is for 1.3.14 angular version?
The text was updated successfully, but these errors were encountered: