-
-
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
[Glimmer?] Helper does not receive correct view in 1.13 #11233
Comments
@martndemus can you give us a more complete example? I think I know what you are saying, but I want to be sure. |
Is this what you are talking about: 1.12 -> http://emberjs.jsbin.com/rwjblue/529/edit I am unsure what exactly |
@martndemus I believe this may have indeed changed, but we're going to view this change as a bugfix. Robert's demo doesn't show that the view passed to the helper was the component, however whatever it was, it was not the same as the
If If the old behavior was passing the component as the view, it was a violation of the "transparency" of the yielded block. This is the idea that when a component yields, everything in the yield goes back to the scope the component was called in. |
Actually what I meant is this: |
@martndemus - Great thank you for clarifying! Definitely seems like a bug to me. |
No problem, hope it can get fixed soon! |
You are awesome! 👍 |
In <= 1.12
view
would be the component the helper would be called in.In 1.13 this changed to the controllers view.
The text was updated successfully, but these errors were encountered: