-
-
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
[REGRESSION] In Ember 1.13.0+ initial literal values of component attributes cannot be updated #11559
Comments
i would assume: this.set('test', this.get('test') || 'updated'); would be the way to deal with defaults in |
@stefanpenner the problem is that one cannot override the defaults |
Submitted #11572 to address this. |
@rwjblue Thanks a lot! Will the fix appear in the 1.13.3 release? When may I expect it? |
Yes, it will be in 1.13.3 (should be out in a day or two). |
@rwjblue @stefanpenner This is happening again in Ember 2.1.0 (regression compared to 2.0.2) http://emberjs.jsbin.com/yinuqe/edit?html,js,console,output |
@OrKoN - Can you open a new issue? |
@rwjblue sure, opened a new one |
See jsbin http://emberjs.jsbin.com/likiqofaxa/1/edit?html,js,console,output
If you pass a literal as an attribute value, the component cannot update it:
where MyComponent is
The first does not work(
test
is not updated in the component template) and the second works as expected.I am migrating from 1.12. jsbin http://emberjs.jsbin.com/tuhisokijo/1/edit?html,js,console,output
The text was updated successfully, but these errors were encountered: