fix sometimes not working click handler in buttons

eg. admin.index or admin.acl
This commit is contained in:
ralf 2022-05-13 17:18:00 +02:00
parent b69c5e7cbf
commit 6f2a93ef0a

View File

@ -215,13 +215,14 @@ const Et2WidgetMixin = (superClass) =>
this.disabled = false;
this._handleClick = this._handleClick.bind(this);
this.addEventListener("click", this._handleClick);
}
connectedCallback()
{
super.connectedCallback();
this.addEventListener("click", this._handleClick);
if(this.statustext)
{
this.egw().tooltipBind(this, this.statustext);