I am posting this because the answer posted in this SO thread isn't working for me. I want to pass extra data params to an on-tap event handler from a paper-button (in a dom-repeat). The results using the following code snippets provide a sub paper-material element with no data.
Using:
<template is="dom-repeat" items="{{someParam}}>
<paper-button on-tap="_handleTap" data-args="{{item}}">...</paper-button>
</template>
And handling with:
var args = e.target.getAttribute('data-args').split(',');
or
e.target.dataset.args
Both return <paper-material ...>...</paper-material>
What is going on? Why won't the targets return the paper-button tapped or that data in it?!