mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
Fix Et2Image was using et2_clickable class without href or onclick
This commit is contained in:
parent
b47d6fc702
commit
3efe81c293
@ -177,9 +177,9 @@ export class Et2Image extends Et2Widget(SlotMixin(LitElement)) implements et2_ID
|
||||
this._img.setAttribute("src", this.parse_href(this.src) || this.parse_href(this.default_src));
|
||||
}
|
||||
// if there's an href or onclick, make it look clickable
|
||||
if(changedProperties.has("href") || changedProperties.has("onclick"))
|
||||
if(changedProperties.has("href") || typeof this.onclick !== "undefined")
|
||||
{
|
||||
this.classList.toggle("et2_clickable", this.href || this.onclick)
|
||||
this.classList.toggle("et2_clickable", this.href || typeof this.onclick !== "undefined")
|
||||
}
|
||||
for(const changedPropertiesKey in changedProperties)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user