If widget has onclick attribute, add et2_clickable class

This commit is contained in:
nathan 2022-10-17 15:18:13 -06:00
parent 6034702a7c
commit 9d2a319821

View File

@ -394,6 +394,10 @@ const Et2WidgetMixin = <T extends Constructor>(superClass : T) =>
this.egw().tooltipBind(this, this.statustext);
}
}
if(changedProperties.has("onclick"))
{
this.classList.toggle("et2_clickable", this.onclick != null && typeof this.onclick != "undefined");
}
}
/**