From 4077d48491e73f27215a31aa4acae28bffc7e0fe Mon Sep 17 00:00:00 2001 From: milan Date: Fri, 5 Apr 2024 14:13:34 +0200 Subject: [PATCH] fix onClick of tree for mobile --- api/js/egw_action/EgwPopupActionImplementation.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/js/egw_action/EgwPopupActionImplementation.ts b/api/js/egw_action/EgwPopupActionImplementation.ts index 0fae61c4e2..9b42b6de1e 100644 --- a/api/js/egw_action/EgwPopupActionImplementation.ts +++ b/api/js/egw_action/EgwPopupActionImplementation.ts @@ -97,6 +97,9 @@ export class EgwPopupActionImplementation implements EgwActionImplementation { // Prevent bubbling bound event on tag, on touch devices // a tag should be handled by default event if (window.egwIsMobile() && e.target.tagName == "A") return true; + //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 (typeof document["selection"] != "undefined" && typeof document["selection"].empty != "undefined") { document["selection"].empty();