From f66e72f1d0c8f6ad4d1870305e708d659d42aff5 Mon Sep 17 00:00:00 2001 From: ralf Date: Fri, 9 Aug 2024 11:18:03 +0200 Subject: [PATCH] Revert "Fixed: Failed to execute 'contains' on 'Node': parameter 1 is not of type 'Node'" It breaks history in every edit popup window :( This reverts commit 044189a2ed22e3a6e5976eb6b63b00d3f06eb14a. --- 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 b7aeca6032..1876909df1 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( (typeof this.div[0] === 'Node' || typeof this === 'Node') && tabbox.tabData[i].contentDiv?.contains(this.div[0] || this)) + if(tabbox.tabData[i].contentDiv?.contains(this.div[0] || this)) { return tabbox.tabData[i]; }