-
Notifications
You must be signed in to change notification settings - Fork 27.5k
ngAnimate cause errors after updating to 1.3 (Cannot read property 'parentNode' of undefined) #9953
Comments
if I had to guess, I'd say this is probably somewhere where you've got an |
Would you care to submit a patch to make |
Thx for your help, removing every ng-class from the code doesn't help and we still have the problem ;) We just begin a dichotomy method map reduce across the team to find with part of the app/directives is the source of our problem. If we feel confident to submit a patch, we would love to do so! |
I believe the issue relates to element transclusion, because it looks like what's happening is the class changes are being registered before the element is being removed from the DOM --- in the case of element transclusion, you'd still have an "element", but it would be a comment node, and the filter-out-comment-nodes routine would fail. |
It seems like the problem is coming from the presence of a name attribute on an input inside a form. Removing this input solve the error, but then we can't validate our form properly. Now we can really work on a jsbin since we have isolate the problem. |
You can reproduce this problem in this jsbin: http://jsbin.com/zamuca/5/edit?html,js,output Seems like having a input with name 'nodeType' is the source of the problem because nodeType is a reserved word in angularjs world. But it is a functionnal name in our world so we have to find a workaround now. We are working on a less verbose jsbin to reproduce this problem |
Here a simple jsbin to reproduce the root of our error: http://jsbin.com/bikaxo/10/edit?html,js,output Using a directive with require: '^form' that generate an input with name 'nodeType' in a form cause the app to crash forever... Since the root cause of this issue change a lot and does not depends on ngAnimate, we close can close this one and create a brand new other one. |
…t the end of body tag, to avoid angular-animate bug (angular/angular.js#9953)
Hi,
We migrate our codebase from 1.2 to 1.3 and we have a strange error with ngAnimate now.
Everything was working fine before but since we update to 1.3 we have weird errors in console at angular-animate.js:1201:41 in method setClass:
All this stack is inside angularjs and we are not enough confident to explain why we face those errors.
Seems like a breaking change in the 1.3 cause those issues.
If we remove ngAnimate from loaded modules, everything works fine but we don't have fancy animations anymore of course :(
We plan to work on a jsbin/jsfiddle to reproduce the problem on a code base with less than 12000+ loc...
If you have any idea about this issue, please your help is welcome 😃
Regards
The text was updated successfully, but these errors were encountered: