diff --git a/polygerrit-ui/app/elements/change-list/gr-create-destination-dialog/gr-create-destination-dialog.js b/polygerrit-ui/app/elements/change-list/gr-create-destination-dialog/gr-create-destination-dialog.js index 3652e70508..cbc7bcda81 100644 --- a/polygerrit-ui/app/elements/change-list/gr-create-destination-dialog/gr-create-destination-dialog.js +++ b/polygerrit-ui/app/elements/change-list/gr-create-destination-dialog/gr-create-destination-dialog.js @@ -50,9 +50,13 @@ this.$.createOverlay.close(); } - _pickerConfirm() { + _pickerConfirm(e) { this.$.createOverlay.close(); const detail = {repo: this._repo, branch: this._branch}; + // e is a 'confirm' event from gr-dialog. We want to fire a more detailed + // 'confirm' event here, so let's stop propagation of the bare event. + e.preventDefault(); + e.stopPropagation(); this.dispatchEvent(new CustomEvent('confirm', {detail, bubbles: false})); }