From 1b3f6ea95dae48c684aabe2687f7b1dac72fe090 Mon Sep 17 00:00:00 2001 From: nathan Date: Thu, 14 Nov 2024 10:03:37 -0700 Subject: [PATCH] Et2Tree: Stop doubled onclick call --- api/js/etemplate/Et2Tree/Et2Tree.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/api/js/etemplate/Et2Tree/Et2Tree.ts b/api/js/etemplate/Et2Tree/Et2Tree.ts index 44498d3545..375841c38b 100644 --- a/api/js/etemplate/Et2Tree/Et2Tree.ts +++ b/api/js/etemplate/Et2Tree/Et2Tree.ts @@ -940,14 +940,6 @@ export class Et2Tree extends Et2WidgetWithSelectMixin(LitElement) implements Fin { 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()