-
-
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
elementId
issue binding to an immutable computed property
#10728
Comments
elementId
issue binding to an unmutable computed propertyelementId
issue binding to an immutable computed property
Also for more context, This issue occurs in v1.10 as well. I updated the example to be v1.9.1 compatible...then it will simply ignore my CP and use the auto-generated id |
I don't think that one fixes this. I also tested this on beta/canary (first JSBin) @rwjblue Some weird behavior also when I explicitly pass in the id vs set the elementId on the component http://emberjs.jsbin.com/temiji/5/edit?html,js,output Really what I'm trying to achieve is an ID set using a CP though |
I'm not seeing where this was ever supported (I could be wrong). We assume that calling I believe that this isn't a bug/regression, but simply something that we do not support. I'd be in favor of documenting that explicitly in the API docs (around here). The following JSBin shows a way to get a dynamic value for |
Closing now, as I think my last comment addresses things, but if you can show me where this once worked (which would make this a regression) I'm happy to reopen... |
The following JSBin is on beta:
http://emberjs.jsbin.com/temiji/2/edit
I would expect something like this to work but the component's final id in the DOM is actually being injected into the as to
toString
'd version of the computed property.If I bind elementId directly to a "String" literal it will work.
The text was updated successfully, but these errors were encountered: