From 9acf7e4d710dbcd72f8fb5da2182fd86abb7703c Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Tue, 25 Jan 2022 15:21:38 +0300 Subject: [PATCH] [DE mobile] Fix bug --- apps/documenteditor/mobile/src/controller/Search.jsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/documenteditor/mobile/src/controller/Search.jsx b/apps/documenteditor/mobile/src/controller/Search.jsx index dca750607..b51fadee1 100644 --- a/apps/documenteditor/mobile/src/controller/Search.jsx +++ b/apps/documenteditor/mobile/src/controller/Search.jsx @@ -108,12 +108,13 @@ const Search = withTranslation()(props => { f7.popover.close('.document-menu.modal-in', false); if (params.find && params.find.length) { - - if(params.highlight) api.asc_selectSearchingResults(true); - api.asc_findText(params.find, params.forward, params.caseSensitive, function(resultCount) { + if (params.highlight) api.asc_selectSearchingResults(true); + + api.asc_findText(params.find, params.forward, params.caseSensitive, function (resultCount) { !resultCount && f7.dialog.alert(null, _t.textNoTextFound); }); + } }; const onchangeSearchQuery = params => {