Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Exception when using the accordion in conjunction with the Angular $routeProvider #28

Closed
vincesp opened this issue Dec 3, 2012 · 1 comment

Comments

@vincesp
Copy link

vincesp commented Dec 3, 2012

Steps to reproduce

  • Open http://plnkr.co/edit/k3ggcF?p=preview
  • Open the JavaScript console in your browser
  • In the right-hand side preview panel, click on the link "Open accordion"
  • The $routeProvider will load the accordion.part template. Click on "Home" to return to the previous screen

Expected result

  • The initial screen is displayed again

Actual result

  • Nothing happens
  • In the JavaScript console, an exception is displayed:
    TypeError: Cannot read property '$$childHead' of null
        at Object.e.$destroy (http://ajax.googleapis.com/ajax/libs/angularjs/1.0.3/angular.min.js:85:433)
        at Comment.<anonymous> (http://ajax.googleapis.com/ajax/libs/angularjs/1.0.3/angular.min.js:12:129)
        at http://ajax.googleapis.com/ajax/libs/angularjs/1.0.3/angular.min.js:22:462
        at Array.forEach (native)
        at m (http://ajax.googleapis.com/ajax/libs/angularjs/1.0.3/angular.min.js:6:193)
        at Object.c [as handle] (http://ajax.googleapis.com/ajax/libs/angularjs/1.0.3/angular.min.js:22:433)
        at sb (http://ajax.googleapis.com/ajax/libs/angularjs/1.0.3/angular.min.js:20:51)
        at sa (http://ajax.googleapis.com/ajax/libs/angularjs/1.0.3/angular.min.js:19:290)
        at sa (http://ajax.googleapis.com/ajax/libs/angularjs/1.0.3/angular.min.js:19:342)
        at sa (http://ajax.googleapis.com/ajax/libs/angularjs/1.0.3/angular.min.js:19:342) 
@pkozlowski-opensource
Copy link
Member

@vincesp Unfortunately you are hitting a bug in AngularJS 1.0.3 that is not related to the accordion really. The bug I'm mentioning is this one angular/angular.js#1627. It was already fixed in AngularJS master but there was no release since the fix.

Your best option for now is to downgrade to 1.0.2 which runs OK: http://plnkr.co/edit/qTVrwK?p=preview

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants