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

@ -515,7 +515,7 @@ var et2_searchbox = /** @class */ (function (_super) {
return true;
};
et2_searchbox.prototype.getDOMNode = function (asker) {
if (asker.getParent() == this) {
if (asker && asker.getParent() == this) {
return this.flex[0];
}
return _super.prototype.getDOMNode.call(this, asker);

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];
}