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

Assertion when passing id hash argument to tagless components. #14105

Closed
rwjblue opened this issue Aug 21, 2016 · 0 comments
Closed

Assertion when passing id hash argument to tagless components. #14105

rwjblue opened this issue Aug 21, 2016 · 0 comments

Comments

@rwjblue
Copy link
Member

rwjblue commented Aug 21, 2016

Invoking a tagless component and providing an id triggers an assertion with the following text:

Error: Assertion Failed: You cannot use `elementId` on a tag-less component: <App.FooBarComponent:ember275>

I completely agree that passing an elementId to a tagless component is obviously wrong, however passing id is not the same as passing elementId. However, passing id is not "obviously wrong".

Alpha Demo JSBin
Canary Demo JSBin
Beta Demo JSBin

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

No branches or pull requests

1 participant