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

Enhance click.delegate #318

Closed
dbrezoev opened this issue Apr 11, 2016 · 4 comments
Closed

Enhance click.delegate #318

dbrezoev opened this issue Apr 11, 2016 · 4 comments

Comments

@dbrezoev
Copy link

I cannot enhance click.delegate when applied on a table. For example <table click.delegate="clickAnywhereOnTheTable($event)"> ...</table>. The same if used on a div etc.

@oneillci
Copy link

I have found when using the bindingEngine enhance that only simple interpolation ${blah} works on the element you target.

However, if you wrap your table or div in a container (div/span or whatever), and enhance the container, things work as expected.
i.e.

<div class='enhance-this-element-instead'><table click.delegate="clickAnywhereOnTheTable($event)"...</table></div>

I'm not sure if this is a bug or intended behaviour

@dbrezoev
Copy link
Author

Thanks, it really works. I don`t know if it is intended behavior too. Thanks again.

@JeroenVinke
Copy link
Collaborator

We're also hitting this issue and I think that this gist demonstrates it

@JeroenVinke
Copy link
Collaborator

JeroenVinke commented Jun 11, 2016

I was able to trace it back to this line where only child elements of the target element are seen as instructables, not the target element itself. Does this have anything to do with the fact that templates should be wrapped in <template></template> tags? What are those template tags for anyway?

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

3 participants