fix JS error on displaying validation message, probably when tab is not yet loaded

This commit is contained in:
ralf 2022-11-08 12:51:41 +01:00
parent 1d86f1712a
commit 8b0e5867cb

View File

@ -349,7 +349,7 @@ export abstract class et2_DOMWidget extends et2_widget implements et2_IDOMNode
{ {
// Find the tab by DOM heritage // Find the tab by DOM heritage
// @ts-ignore // @ts-ignore
if(tabbox.tabData[i].contentDiv.contains(this.div[0] || this)) if(tabbox.tabData[i].contentDiv?.contains(this.div[0] || this))
{ {
return tabbox.tabData[i]; return tabbox.tabData[i];
} }