Et2Description: Fix urls from activateLinks did not open properly

This commit is contained in:
nathan 2023-04-04 14:08:24 -06:00
parent 812aa63acb
commit 25d41d16ee

View File

@ -222,11 +222,19 @@ export class Et2Description extends Et2Widget(LitElement) implements et2_IDetach
if(this.mimeData || this.href)
{
egw(window).open_link(this.mimeData || this.href, this.extraLinkTarget, this.extraLinkPopup, null, null, this.mime);
}
_ev.preventDefault();
return false;
}
else if(_ev.target.nodeName !== "A")
{
// If it's not an activated link, just stop
_ev.preventDefault();
return false;
}
// Let links (present if activateLinks = true) do their thing normally
}
protected wrapLink(href, value)
{