mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-26 07:49:28 +01:00
Etemplate: Avoid error if sender is not passed
This commit is contained in:
parent
af4fcd7a2d
commit
31b7c49fd3
@ -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);
|
||||
|
@ -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];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user