diff --git a/client/src/views/main.js b/client/src/views/main.js index f03bb6031d..32a3889f47 100644 --- a/client/src/views/main.js +++ b/client/src/views/main.js @@ -45,6 +45,7 @@ Espo.define('views/main', 'view', function (Dep) { var method = 'action' + Espo.Utils.upperCaseFirst(action); if (typeof this[method] == 'function') { e.preventDefault(); + e.stopPropagation(); this[method].call(this, data, e); } } diff --git a/client/src/views/record/detail.js b/client/src/views/record/detail.js index 91e932c109..af82c2995a 100644 --- a/client/src/views/record/detail.js +++ b/client/src/views/record/detail.js @@ -127,6 +127,7 @@ Espo.define('views/record/detail', ['views/record/base', 'view-record-helper'], var method = 'action' + Espo.Utils.upperCaseFirst(action); if (typeof this[method] == 'function') { this[method].call(this, data, e); + e.stopPropagation(); e.preventDefault(); } }