-
-
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 beta] Fix positional params in contextual components with dot syntax #12626
Conversation
LGTM @mixonic - r? |
Sauce is failing :( |
Restarted it. |
@@ -59,8 +59,7 @@ ComponentNodeManager.create = function ComponentNodeManager_create(renderNode, e | |||
configureCreateOptions(attrs, createOptions); | |||
|
|||
// If there is a controller on the scope, pluck it off and save it on the | |||
// component. This allows the component to target actions sent via | |||
// `sendAction` correctly. | |||
// component. This allows the component to target actions sent via // `sendAction` correctly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lost a newline here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed!
@@ -33,6 +34,29 @@ export default function componentHook(renderNode, env, scope, _tagName, params, | |||
let componentCell = stream.value(); | |||
if (isComponentCell(componentCell)) { | |||
tagName = componentCell[COMPONENT_PATH]; | |||
|
|||
/* | |||
* This need to be done to avoid problems with rest positional parameters |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This need to be done to avoid
into
Processing positional params before merging into a hash must be done here to avoid
Seems good pending small doc edits :-) |
… syntax As reported in emberjs#12625, positional parameters were not being rendered correctly when using the dot syntax. A longer description on the cause of the problem has been added as a comment to `ember-htmlbars/lib/hooks/component.js` for future warning. Fix emberjs#12625
@mixonic I think I've addressed them all |
Restarted Sauce |
[BUGFIX beta] Fix positional params in contextual components with dot syntax
thanks @Serabe ! |
👍 |
As reported in #12625, positional parameters were not being rendered correctly
when using the dot syntax. A longer description on the cause of the problem has
been added as a comment to
ember-htmlbars/lib/hooks/component.js
for futurewarning.
Fix #12625