From 5b972ea11f1e22c676fcaed88a0edbcab182da5e Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 12 Jan 2015 16:17:29 +0000 Subject: [PATCH] Stop default actions from bubbling after they are handled, fixes parent default action firing after child default action has been handled --- phpgwapi/js/egw_action/egw_action_popup.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/phpgwapi/js/egw_action/egw_action_popup.js b/phpgwapi/js/egw_action/egw_action_popup.js index a9b1c9fa9a..e4e0de0dd6 100644 --- a/phpgwapi/js/egw_action/egw_action_popup.js +++ b/phpgwapi/js/egw_action/egw_action_popup.js @@ -144,6 +144,10 @@ function egwPopupActionImplementation() _callback.call(_context, "default", ai); + // Stop action from bubbling up to parents + e.stopPropagation(); + e.cancelBubble = true; + return false; };