From 2aca892017368c2e7ad6680176f137f06362081b Mon Sep 17 00:00:00 2001 From: SergeyEzhin Date: Tue, 23 Nov 2021 11:31:05 +0400 Subject: [PATCH] [SSE mobile] Fix Bug 53990 --- .../spreadsheeteditor/mobile/src/controller/Error.jsx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/apps/spreadsheeteditor/mobile/src/controller/Error.jsx b/apps/spreadsheeteditor/mobile/src/controller/Error.jsx index fc0b1108a..616358575 100644 --- a/apps/spreadsheeteditor/mobile/src/controller/Error.jsx +++ b/apps/spreadsheeteditor/mobile/src/controller/Error.jsx @@ -18,7 +18,9 @@ const ErrorController = inject('storeAppOptions')(({storeAppOptions, LoadingDocu }); const onError = (id, level, errData) => { - + const api = Common.EditorApi.get(); + api.asc_enableKeyEvents(false); + if (id === Asc.c_oAscError.ID.LoadingScriptError) { f7.notification.create({ title: _t.criticalErrorTitle, @@ -31,8 +33,6 @@ const ErrorController = inject('storeAppOptions')(({storeAppOptions, LoadingDocu Common.Notifications.trigger('preloader:close'); Common.Notifications.trigger('preloader:endAction', Asc.c_oAscAsyncActionType['BlockInteraction'], LoadingDocument,true); - const api = Common.EditorApi.get(); - const config = { closable: false }; @@ -357,7 +357,10 @@ const ErrorController = inject('storeAppOptions')(({storeAppOptions, LoadingDocu buttons: [ { text: 'OK', - onClick: config.callback + onClick: () => { + api.asc_enableKeyEvents(true); + config.callback; + } } ] }).open();