From 044189a2ed22e3a6e5976eb6b63b00d3f06eb14a Mon Sep 17 00:00:00 2001 From: Alexandros Sigalas Date: Thu, 8 Aug 2024 00:12:07 +0300 Subject: [PATCH] Fixed: Failed to execute 'contains' on 'Node': parameter 1 is not of type 'Node' --- api/js/etemplate/et2_core_DOMWidget.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/js/etemplate/et2_core_DOMWidget.ts b/api/js/etemplate/et2_core_DOMWidget.ts index 1876909df1..b7aeca6032 100644 --- a/api/js/etemplate/et2_core_DOMWidget.ts +++ b/api/js/etemplate/et2_core_DOMWidget.ts @@ -349,7 +349,7 @@ export abstract class et2_DOMWidget extends et2_widget implements et2_IDOMNode { // Find the tab by DOM heritage // @ts-ignore - if(tabbox.tabData[i].contentDiv?.contains(this.div[0] || this)) + if( (typeof this.div[0] === 'Node' || typeof this === 'Node') && tabbox.tabData[i].contentDiv?.contains(this.div[0] || this)) { return tabbox.tabData[i]; }