Fix searchbox messed up DOMNode

This commit is contained in:
Hadi Nategh 2020-03-17 15:56:56 +01:00
parent 5af17679f3
commit b2c60f5667
2 changed files with 4 additions and 4 deletions

View File

@ -534,7 +534,7 @@ var et2_searchbox = /** @class */ (function (_super) {
* override doLoadingFinished in order to set initial state * override doLoadingFinished in order to set initial state
*/ */
et2_searchbox.prototype.doLoadingFinished = function () { et2_searchbox.prototype.doLoadingFinished = function () {
var ret = _super.prototype.doLoadingFinished.call(this); _super.prototype.doLoadingFinished.call(this);
if (!this.get_value()) { if (!this.get_value()) {
this._show_hide(false); this._show_hide(false);
} }
@ -542,7 +542,7 @@ var et2_searchbox = /** @class */ (function (_super) {
this._show_hide(!this.options.overlay); this._show_hide(!this.options.overlay);
this._searchToggleState(); this._searchToggleState();
} }
return ret; return false;
}; };
/** /**
* Overrride attachToDOM in order to unbind change handler * Overrride attachToDOM in order to unbind change handler

View File

@ -629,7 +629,7 @@ class et2_searchbox extends et2_textbox
*/ */
doLoadingFinished() doLoadingFinished()
{ {
let ret = super.doLoadingFinished(); super.doLoadingFinished();
if (!this.get_value()) { if (!this.get_value()) {
this._show_hide(false); this._show_hide(false);
@ -638,7 +638,7 @@ class et2_searchbox extends et2_textbox
this._show_hide(!this.options.overlay); this._show_hide(!this.options.overlay);
this._searchToggleState(); this._searchToggleState();
} }
return ret; return false;
} }
/** /**