From 90d5debb8c7c61df28c804d3f0025a6acdd7a853 Mon Sep 17 00:00:00 2001 From: Gomaa Date: Thu, 10 Sep 2020 13:00:49 +0200 Subject: [PATCH] fix #2910: Recon service remove button also selects the service (#3168) * FIx for issue #2910 : Service remove button click event propagates to underlying element * Use stopImmediatePropagation function to fix the issue --- .../webapp/modules/core/scripts/reconciliation/recon-dialog.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main/webapp/modules/core/scripts/reconciliation/recon-dialog.js b/main/webapp/modules/core/scripts/reconciliation/recon-dialog.js index 43adff96b..d02717342 100644 --- a/main/webapp/modules/core/scripts/reconciliation/recon-dialog.js +++ b/main/webapp/modules/core/scripts/reconciliation/recon-dialog.js @@ -129,10 +129,11 @@ ReconDialog.prototype._populateDialog = function() { .html(" ") .addClass("recon-dialog-service-selector-remove") .prependTo(record.selector) - .click(function() { + .click(function(event) { ReconciliationManager.unregisterService(service, function() { self._refresh(-1); }); + event.stopImmediatePropagation(); }); self._serviceRecords.push(record);