From b2c60f5667a619af6871870855597c4043193191 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Tue, 17 Mar 2020 15:56:56 +0100 Subject: [PATCH] Fix searchbox messed up DOMNode --- api/js/etemplate/et2_widget_textbox.js | 4 ++-- api/js/etemplate/et2_widget_textbox.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/api/js/etemplate/et2_widget_textbox.js b/api/js/etemplate/et2_widget_textbox.js index 8a857e875b..e1f43d0f30 100644 --- a/api/js/etemplate/et2_widget_textbox.js +++ b/api/js/etemplate/et2_widget_textbox.js @@ -534,7 +534,7 @@ var et2_searchbox = /** @class */ (function (_super) { * override doLoadingFinished in order to set initial state */ et2_searchbox.prototype.doLoadingFinished = function () { - var ret = _super.prototype.doLoadingFinished.call(this); + _super.prototype.doLoadingFinished.call(this); if (!this.get_value()) { this._show_hide(false); } @@ -542,7 +542,7 @@ var et2_searchbox = /** @class */ (function (_super) { this._show_hide(!this.options.overlay); this._searchToggleState(); } - return ret; + return false; }; /** * Overrride attachToDOM in order to unbind change handler diff --git a/api/js/etemplate/et2_widget_textbox.ts b/api/js/etemplate/et2_widget_textbox.ts index d947485921..0ec1b1fe68 100644 --- a/api/js/etemplate/et2_widget_textbox.ts +++ b/api/js/etemplate/et2_widget_textbox.ts @@ -629,7 +629,7 @@ class et2_searchbox extends et2_textbox */ doLoadingFinished() { - let ret = super.doLoadingFinished(); + super.doLoadingFinished(); if (!this.get_value()) { this._show_hide(false); @@ -638,7 +638,7 @@ class et2_searchbox extends et2_textbox this._show_hide(!this.options.overlay); this._searchToggleState(); } - return ret; + return false; } /**