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

Fix curly component class reference setup #16572

Merged
merged 2 commits into from
Apr 22, 2018
Merged

Fix curly component class reference setup #16572

merged 2 commits into from
Apr 22, 2018

Conversation

ef4
Copy link
Contributor

@ef4 ef4 commented Apr 22, 2018

This fixes #16505 . The curly component manager was looking at the current value of its class argument reference during creation, which is never the right thing to do -- the references need to be agnostic to value because value is going to change through the lifetime of the component.

I'm using SimpleClassNameBindingReference here instead of ClassNameBinding.install because ClassNameBinding.install brings along more microsyntax, and AFAIK we don't support the classNameBindings microsyntax in template-inline class arguments like {{some-component class=something}}.

ef4 added 2 commits April 22, 2018 08:30
This fixes 16505. The curly component manager was looking at the current value of its class argument reference during creation, which is never the right thing to do -- the references need to be agnostic to value because value is going to change through the lifetime of the component.

I'm using `SimpleClassNameBindingReference` here instead of `ClassNameBinding.install` because `ClassNameBinding.install` brings along more microsyntax, and AFAIK we don't support the `classNameBindings` microsyntax in template-inline class arguments like `{{some-component class=something}}`.
@rwjblue rwjblue merged commit 1c9cc46 into master Apr 22, 2018
@rwjblue rwjblue deleted the issue-16505 branch April 22, 2018 13:51
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.1.0] "class" attribute not being recomputed
2 participants