I had the same problem and found that using e.currentTarget returned the 
parent element.

http://stackoverflow.com/questions/30596180/polymer-1-0-on-tap-events-target-is-child

On Thursday, February 5, 2015 at 2:13:09 AM UTC-5, [email protected] 
wrote:
>
> I am trying to make image clickable. Polymer code looks like:
>
> <div on-click={{clickHandler}}>
>    <img src="xyz.jpg" />
> </div>
>
> in the handler i always get e.target as img, i tried doing 
> e.stopPropogation it still does not detect click of div.
>
> Any work around this one ??
>

Follow Polymer on Google+: plus.google.com/107187849809354688692
--- 
You received this message because you are subscribed to the Google Groups 
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/polymer-dev/4ce0897f-7c0e-442a-9294-1b125a27bff0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to