Only try to find parent via jQuery if typeof _node == "string" AND _node !== ""

This commit is contained in:
Alexandros Sigalas 2025-02-14 19:48:19 +02:00
parent bb923b33e5
commit 31a2d77e8a

View File

@ -388,7 +388,7 @@ export abstract class et2_DOMWidget extends et2_widget implements et2_IDOMNode
*/
set_parent_node(_node)
{
if(typeof _node == "string")
if(typeof _node == "string" && _node !== "" )
{
var parent = jQuery('#'+_node);
if(parent.length === 0 && window.parent)