Fix delete button in gr-email-editor

Change-Id: I54b61a697fd8f11cab6f30463ce94b63c7c8f2b3
This commit is contained in:
Becky Siegel
2017-10-11 11:51:15 -07:00
parent 790233f3b1
commit defcf7570d

View File

@@ -62,7 +62,7 @@
},
_handleDeleteButton(e) {
const index = parseInt(e.target.getAttribute('data-index'), 10);
const index = parseInt(e.currentTarget.getAttribute('data-index'), 10);
const email = this._emails[index];
this.push('_emailsToRemove', email);
this.splice('_emails', index, 1);