fix onClick of tree for mobile

This commit is contained in:
milan 2024-04-05 14:13:34 +02:00
parent 2ac4c382b5
commit 4077d48491

View File

@ -97,6 +97,9 @@ export class EgwPopupActionImplementation implements EgwActionImplementation {
// 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;
//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();