-
-
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
Positional param 'value' leaks inner data when used in combination with nested component helpers #12717
Comments
I cannot reproduce it: https://ember-twiddle.com/bc25554d2cbe7c0c5ced Can you please provide more info? If I remove the quotes around Thank you for reporting this! |
@Serabe It seems that the contextual helper is needed to trigger the bug. https://ember-twiddle.com/1eba14b986610d4dc631 |
Thank you! I'll be fixing this today "hopefully" |
👍 |
I need @mixonic or @rwjblue guidance on this. The problem is that this is being rendered as When htmlbars finds Should I submit a PR for this or is there any reason for that code being there? How can I test ember with a custom htmlbars? |
Reopening to get the updated version here. @Serabe - Can you submit a PR updating to HTMLBars v0.14.11? |
This fixes a bug where a component's cell was being leaked as the first positional parameter. Fixes emberjs#12717
If I have component with the positional param
value
, and I use it in combination with nested component helpers{{component (component my-component)}}
, and the following component code:Then the logged
value
will be an object with attributesCOMPONENT_CELL
,COMPONENT_HASH
,COMPONENT_PATH
andCOMPONENT_POSITIONAL_PARAMS
.This fails for me using
2.3.0-beta.2
andcomponents/ember#canary
. I'll try to add a failing test if I get to it.I also believe @Serabe will be delighted to hear about this.
The text was updated successfully, but these errors were encountered: