diff --git a/polygerrit-ui/app/elements/change/gr-change-actions/gr-change-actions.js b/polygerrit-ui/app/elements/change/gr-change-actions/gr-change-actions.js index 8f2468b50c..2cda515c97 100644 --- a/polygerrit-ui/app/elements/change/gr-change-actions/gr-change-actions.js +++ b/polygerrit-ui/app/elements/change/gr-change-actions/gr-change-actions.js @@ -666,7 +666,7 @@ _handleActionTap(e) { e.preventDefault(); - const el = e.currentTarget; + const el = Polymer.dom(e).localTarget; const key = el.getAttribute('data-action-key'); if (key.startsWith(ADDITIONAL_ACTION_KEY_PREFIX)) { this.fire(`${key}-tap`, {node: el}); 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 708a799ecb..2d3f1c362b 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,8 @@ }, _handleDeleteButton(e) { - const index = parseInt(e.currentTarget.getAttribute('data-index'), 10); + const index = parseInt(Polymer.dom(e).localTarget + .getAttribute('data-index'), 10); const email = this._emails[index]; this.push('_emailsToRemove', email); this.splice('_emails', index, 1); diff --git a/polygerrit-ui/app/elements/settings/gr-ssh-editor/gr-ssh-editor.js b/polygerrit-ui/app/elements/settings/gr-ssh-editor/gr-ssh-editor.js index 328d3d93f6..fb868e8cb4 100644 --- a/polygerrit-ui/app/elements/settings/gr-ssh-editor/gr-ssh-editor.js +++ b/polygerrit-ui/app/elements/settings/gr-ssh-editor/gr-ssh-editor.js @@ -58,7 +58,7 @@ }, _showKey(e) { - const el = e.currentTarget; + const el = Polymer.dom(e).localTarget; const index = parseInt(el.getAttribute('data-index'), 10); this._keyToView = this._keys[index]; this.$.viewKeyOverlay.open(); @@ -69,7 +69,7 @@ }, _handleDeleteKey(e) { - const el = e.currentTarget; + const el = Polymer.dom(e).localTarget; const index = parseInt(el.getAttribute('data-index'), 10); this.push('_keysToRemove', this._keys[index]); this.splice('_keys', index, 1); diff --git a/polygerrit-ui/app/elements/shared/gr-download-commands/gr-download-commands.js b/polygerrit-ui/app/elements/shared/gr-download-commands/gr-download-commands.js index ea2492a692..f2f218be0f 100644 --- a/polygerrit-ui/app/elements/shared/gr-download-commands/gr-download-commands.js +++ b/polygerrit-ui/app/elements/shared/gr-download-commands/gr-download-commands.js @@ -64,7 +64,7 @@ _handleSchemeTap(e) { e.preventDefault(); - const el = e.currentTarget; + const el = Polymer.dom(e).localTarget; this.selectedScheme = el.getAttribute('data-scheme'); if (this._loggedIn) { this.$.restAPI.savePreferences({download_scheme: this.selectedScheme});