Skip to content

Commit

Permalink
Fixed: Failed to execute 'contains' on 'Node': parameter 1 is not of …
Browse files Browse the repository at this point in the history
…type 'Node'
  • Loading branch information
asig2016 authored and ralfbecker committed Aug 8, 2024
1 parent 7c1b156 commit 044189a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/js/etemplate/et2_core_DOMWidget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand Down

0 comments on commit 044189a

Please sign in to comment.