[DE mobile] Fix bug

This commit is contained in:
Julia Radzhabova 2022-01-25 15:21:38 +03:00
parent cde9f19aec
commit 9acf7e4d71

View file

@ -108,12 +108,13 @@ const Search = withTranslation()(props => {
f7.popover.close('.document-menu.modal-in', false); f7.popover.close('.document-menu.modal-in', false);
if (params.find && params.find.length) { 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); !resultCount && f7.dialog.alert(null, _t.textNoTextFound);
}); });
}
}; };
const onchangeSearchQuery = params => { const onchangeSearchQuery = params => {