Etemplate: Avoid error if sender is not passed

This commit is contained in:
nathangray
2020-07-10 13:30:47 -06:00
parent af4fcd7a2d
commit 31b7c49fd3
2 changed files with 2 additions and 2 deletions

View File

@@ -614,7 +614,7 @@ class et2_searchbox extends et2_textbox
getDOMNode(asker)
{
if(asker.getParent() == this)
if(asker && asker.getParent() == this)
{
return this.flex[0];
}