Skip to content

Commit

Permalink
Merge pull request #75 from franzliedke/patch-1
Browse files Browse the repository at this point in the history
Use Event.target instead of proprietary srcElement
  • Loading branch information
soldag authored Sep 12, 2018
2 parents 0547438 + 7b98bfc commit 5cacda9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/data-control/data-filter.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,19 +82,19 @@
_handleTap: function(e) {
var name = e.model.item.name;
var index = this.activeSeries.indexOf(name);
if(e.srcElement.active && index === -1) {
if(e.target.active && index === -1) {
if(this.exclusive) {
var buttons = this.$.filterBar.querySelectorAll('paper-button');
for(var i = 0; i < buttons.length; i++) {
if(buttons[i] !== e.srcElement) {
if(buttons[i] !== e.target) {
buttons[i].active = false;
}
}
this.set('activeSeries', [name]);
} else {
this.push('activeSeries', name);
}
} else if(!e.srcElement.active && index !== -1) {
} else if(!e.target.active && index !== -1) {
this.splice('activeSeries', index, 1);
}
},
Expand Down

0 comments on commit 5cacda9

Please sign in to comment.