[DE PE] Fix Bug 53251

This commit is contained in:
ShimaginAndrey 2021-10-25 17:59:18 +03:00
parent 79ba2a5b7b
commit fddc74b658
2 changed files with 4 additions and 0 deletions

View file

@ -95,6 +95,8 @@ const Search = withTranslation()(props => {
const onSearchQuery = params => {
const api = Common.EditorApi.get();
f7.popover.close('.document-menu.modal-in', false);
if (params.find && params.find.length) {
if (!api.asc_findText(params.find, params.forward, params.caseSensitive, params.highlight) ) {
f7.dialog.alert(null, _t.textNoTextFound);

View file

@ -77,6 +77,8 @@ const Search = withTranslation()(props => {
const onSearchQuery = params => {
const api = Common.EditorApi.get();
f7.popover.close('.document-menu.modal-in', false);
if (params.find && params.find.length) {
if (!api.findText(params.find, params.forward, params.caseSensitive) ) {
f7.dialog.alert(null, _t.textNoTextFound);