-
-
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
[BUGFIX release] On re-render, ensure child views of non-dirty components get the correct parentView #11651
Conversation
…ents get the correct parentView On re-render of a non-dirty component, the `env` was simply passed down when rendering the component's template, which means its parentView was wrong; this patch mimics what keywords already do to solve this for components. Fixes emberjs#11554
rerunning tests |
@tomdale would love for your eyes on this. |
This actually seems like a totally legit use case for the |
@tomdale - So you are 👍? |
It's extremely reminiscent of the issue with outlets but admittedly I am a little out-of-context at the moment. I have not carefully investigated but I can see why there could be an issue here. I'm comfortable with the fix if the test passed and no other tests regress. |
[BUGFIX release] On re-render, ensure child views of non-dirty components get the correct parentView
Thanks, all. Is there anything more I should do to get this into 2.0 as well, or does stable get merged into master regularly? |
@jder |
Ah! I made this to stable rather than master. (cc @rwjblue; this should apply to both master and stable) I had found the contributing doc in the repo, but not in the guide, sorry! |
@jder - No worries, I'll pull it into beta and master branches now. |
This is quite possibly a bad hack rather than a nice solution. I'd love suggestions for a cleaner approach.
On re-render of a non-dirty component, the
env
was simply passed down whenrendering the component's template, which means its parentView was wrong; this
patch mimics what keywords already do to solve this for components.
Fixes #11554