From defcf7570d6f3978536ce87dcd0fa702959dd76e Mon Sep 17 00:00:00 2001 From: Becky Siegel Date: Wed, 11 Oct 2017 11:51:15 -0700 Subject: [PATCH] Fix delete button in gr-email-editor Change-Id: I54b61a697fd8f11cab6f30463ce94b63c7c8f2b3 --- .../app/elements/settings/gr-email-editor/gr-email-editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polygerrit-ui/app/elements/settings/gr-email-editor/gr-email-editor.js b/polygerrit-ui/app/elements/settings/gr-email-editor/gr-email-editor.js index c8d33197dd..708a799ecb 100644 --- a/polygerrit-ui/app/elements/settings/gr-email-editor/gr-email-editor.js +++ b/polygerrit-ui/app/elements/settings/gr-email-editor/gr-email-editor.js @@ -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);