Give bound click handlers on widgets a chance to get executed

This commit is contained in:
Hadi Nategh 2020-05-27 12:43:21 +02:00
parent 99693d1ef6
commit 289f9a0644

View File

@ -168,8 +168,12 @@ function egwPopupActionImplementation()
sel.removeAllRanges();
}
_callback.call(_context, "default", ai);
if (!(_context.manager.getActionsByAttr('singleClick', true).length > 0 &&
e.originalEvent.target.classList.contains('et2_clickable')))
{
_callback.call(_context, "default", ai);
}
// Stop action from bubbling up to parents
e.stopPropagation();
e.cancelBubble = true;