diff --git a/apps/documenteditor/mobile/src/controller/Search.jsx b/apps/documenteditor/mobile/src/controller/Search.jsx index 189c1ad339..a5a689e319 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 98636215bc..5674056a6a 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);