From a84705121bab896a6dba1ef31f53dcf6983ff795 Mon Sep 17 00:00:00 2001 From: ShimaginAndrey Date: Fri, 19 Nov 2021 12:18:02 +0300 Subject: [PATCH] [DE SSE] Fix Bug 53858 --- apps/documenteditor/mobile/src/controller/Search.jsx | 3 ++- apps/spreadsheeteditor/mobile/src/controller/Search.jsx | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/documenteditor/mobile/src/controller/Search.jsx b/apps/documenteditor/mobile/src/controller/Search.jsx index 189c1ad33..a5a689e31 100644 --- a/apps/documenteditor/mobile/src/controller/Search.jsx +++ b/apps/documenteditor/mobile/src/controller/Search.jsx @@ -99,7 +99,8 @@ const Search = withTranslation()(props => { if (params.find && params.find.length) { - api.asc_selectSearchingResults(true); + if(params.highlight) api.asc_selectSearchingResults(true); + if (!api.asc_findText(params.find, params.forward, params.caseSensitive, params.highlight) ) { f7.dialog.alert(null, _t.textNoTextFound); } diff --git a/apps/spreadsheeteditor/mobile/src/controller/Search.jsx b/apps/spreadsheeteditor/mobile/src/controller/Search.jsx index 98636215b..5674056a6 100644 --- a/apps/spreadsheeteditor/mobile/src/controller/Search.jsx +++ b/apps/spreadsheeteditor/mobile/src/controller/Search.jsx @@ -155,7 +155,7 @@ const Search = withTranslation()(props => { options.asc_setScanByRows(searchBy); options.asc_setLookIn(lookIn ? Asc.c_oAscFindLookIn.Formulas : Asc.c_oAscFindLookIn.Value); - api.asc_selectSearchingResults(true); + if (params.highlight) api.asc_selectSearchingResults(true); if (!api.asc_findText(options)) { f7.dialog.alert(null, _t.textNoTextFound);