Fix delete button in gr-email-editor
Change-Id: I54b61a697fd8f11cab6f30463ce94b63c7c8f2b3
This commit is contained in:
@@ -62,7 +62,7 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
_handleDeleteButton(e) {
|
_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];
|
const email = this._emails[index];
|
||||||
this.push('_emailsToRemove', email);
|
this.push('_emailsToRemove', email);
|
||||||
this.splice('_emails', index, 1);
|
this.splice('_emails', index, 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user