-
-
Notifications
You must be signed in to change notification settings - Fork 251
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
Cannot use "control" multiple times if templates are rendered through handlebars files #122
Comments
+1 having the same issue |
Currently, if you use multiple controls in the same template/controller you need to set the controlID property to a different value for each one. E.g.
I hope this is changed in the future to use a guid generated from handlebars. |
Ah, yes. That fixes it. Thanks, @ghempton! |
It seems that Anyway, I think this issue belongs in ember core not here. Please reopen it in @emberjs/ember.js |
Done. Thanks, @tchak. |
Hi everyone,
I'm trying to render a control twice in a template (e.g. http://jsbin.com/ogorab/52/edit). I'm using master of both ember-rails and ember.js.
If I put the template code in
<script>
tags, it works fine. If I put it in app/assets/templates/name.handlebars files, then it fails on the second render withCannot call method 'lookup' of undefined
.I've traced the error to line 23968 of https://gist.github.com/4699877 where
container
is undefined.I've had this reproduced by others in the IRC channel.
If I can help tracking it down at all, please let me know. Thanks for all your work on Ember and Ember-rails!
The text was updated successfully, but these errors were encountered: