From a2fb77792dbbb63c308edc7e9a38cc3084a88eaf Mon Sep 17 00:00:00 2001 From: JuliaSvinareva Date: Tue, 12 Jul 2022 16:12:51 +0300 Subject: [PATCH] [SSE] Bug 58086 --- apps/spreadsheeteditor/main/app/controller/Search.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/spreadsheeteditor/main/app/controller/Search.js b/apps/spreadsheeteditor/main/app/controller/Search.js index 6680e7488..9ae4de9f0 100644 --- a/apps/spreadsheeteditor/main/app/controller/Search.js +++ b/apps/spreadsheeteditor/main/app/controller/Search.js @@ -196,7 +196,7 @@ define([ onSearchNext: function (type, text, e) { var isReturnKey = type === 'keydown' && e.keyCode === Common.UI.Keys.RETURN; - if (text && text.length > 0 && (isReturnKey || type !== 'keydown')) { + if (isReturnKey || type !== 'keydown') { this._state.searchText = text; if (this.onQuerySearch(type) && (this.searchTimer || isReturnKey)) { this.hideResults(); @@ -222,7 +222,7 @@ define([ me.hideResults(); me._state.searchText = me._state.newSearchText; - if (me._state.newSearchText !== '' && me.onQuerySearch()) { + if (me.onQuerySearch()) { if (me.view.$el.is(':visible')) { me.api.asc_StartTextAroundSearch(); }