Et2Tree: Stop doubled onclick call

This commit is contained in:
nathan 2024-11-14 10:03:37 -07:00
parent 36fd86b312
commit 1b3f6ea95d

View File

@ -940,14 +940,6 @@ export class Et2Tree extends Et2WidgetWithSelectMixin(LitElement) implements Fin
{ {
this.selectedNodes = event.detail.selection this.selectedNodes = event.detail.selection
}*/ }*/
if(typeof this.onclick == "function")
{
// wait for the update, so app founds DOM in the expected state
this._tree.updateComplete.then(() =>
{
this.onclick(nodes[0].id, this, event.detail.previous)
});
}
} }
protected async finishedLazyLoading() protected async finishedLazyLoading()