Skip to content
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 input macro params handling #16294

Merged
merged 1 commit into from
Feb 27, 2018
Merged

Conversation

Serabe
Copy link
Member

@Serabe Serabe commented Feb 26, 2018

Before this PR, having a component with an {{input}} with bound type
would make that input only to work the first time it was rendered. This
was because the first param would be shifter from params, and that would
modify the params of the rest of the instances.

This is breaking in current beta.

Fixes #16256

@@ -446,6 +446,22 @@ moduleFor('Helpers test: {{input}} with dynamic type', class extends InputRender

this.assertAttr('type', 'text');
}

['@test GH16256 input macro does not modify params in palce']() {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo for place

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Thank you!

Before this PR, having a component with an `{{input}}` with bound type
would make that input only to work the first time it was rendered. This
was because the first param would be shifter from params, and that would
modify the params of the rest of the instances.

Fixes emberjs#16256
@rwjblue
Copy link
Member

rwjblue commented Feb 27, 2018

Awesome sleuthing! Thank you!

@rwjblue rwjblue merged commit 20087e8 into emberjs:master Feb 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants