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
This commit is contained in:
Gomaa 2020-09-10 13:00:49 +02:00 committed by GitHub
parent 7ca59a0936
commit 90d5debb8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);