-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
parentView undefined during willDestroyElement #12080
Comments
Confirmed that this is still an issue with current canary (what will be 2.7): http://rwjblue.jsbin.com/dupafa/edit?html,js,output. |
Investigated a little bit when this bug occurs since I had to write a test if a work-a-round handles the bug correctly. Had confusing results: https://ember-twiddle.com/9319ab95eb9e1d33c7bdae19d57ccd66?openFiles=templates.application.hbs%2Ctemplates.components.parent-component.hbs |
Added assertions to tests being added in #13775 to ensure that this does not regress again in the future. |
This happens at least since v1.13.5. When changing to an older v1.11.1, assert never fails.
jsbin: http://emberjs.jsbin.com/lireho/edit?html,js,output
It would make sense that the parentView is still present since the event is called before the element gets destroyed.
So does this work as intended?
The text was updated successfully, but these errors were encountered: