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

Angle bracket invocation with "id" attribute does not trigger click() handler #18006

Closed
seungjoolee opened this issue May 3, 2019 · 2 comments

Comments

@seungjoolee
Copy link

On Ember 3.4, I have a very basic button component that uses the click event to trigger the alert() function. When I invoke the button component with angle bracket syntax and set an "id" attribute, the click event never triggers. If I remove the "id" attribute then the click event triggers properly.

If I invoke the component with the classic syntax, the event also triggers properly.

Here's a simple twiddle illustrating the problem. Removing the "id" attribute will have the button behave as expected.

https://ember-twiddle.com/7923dc81876eb33337af534659987bfa?openFiles=templates.application.hbs%2Ctemplates.components.button-click.hbs

@simonihmig
Copy link
Contributor

I think this should have been fixed by #17818. Can you try using Ember 3.10?

@seungjoolee
Copy link
Author

@simonihmig works on 3.10!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants