mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
parent
b1afedd8d9
commit
99af186a01
@ -94,11 +94,12 @@ export class EgwPopupActionImplementation implements EgwActionImplementation {
|
||||
*/
|
||||
private _registerDefault = (_node, _callback, _context)=> {
|
||||
const defaultHandler = (e)=> {
|
||||
// Prevent bubbling bound event on <a> tag, on touch devices
|
||||
// a tag should be handled by default event
|
||||
if (window.egwIsMobile() && e.target.tagName == "A") return true;
|
||||
//allow bubbling of the expand folder event
|
||||
//do not stop bubbling of events if the event is supposed to be handled by the et2-tree
|
||||
if (window.egwIsMobile() && e.target.className == "tree-item__label") return true;
|
||||
if (window.egwIsMobile() && e.currentTarget.tagName == "SL-TREE-ITEM") return true;
|
||||
// a tag should be handled by default event
|
||||
// Prevent bubbling bound event on <a> tag, on touch devices
|
||||
if (window.egwIsMobile() && e.target.tagName == "A") return true;
|
||||
|
||||
|
||||
if (typeof document["selection"] != "undefined" && typeof document["selection"].empty != "undefined") {
|
||||
|
Loading…
Reference in New Issue
Block a user