[SSE mobile] Fix Bug 53990

This commit is contained in:
SergeyEzhin 2021-11-23 11:31:05 +04:00
parent bac52e24c6
commit 2aca892017

View file

@ -18,7 +18,9 @@ const ErrorController = inject('storeAppOptions')(({storeAppOptions, LoadingDocu
}); });
const onError = (id, level, errData) => { const onError = (id, level, errData) => {
const api = Common.EditorApi.get();
api.asc_enableKeyEvents(false);
if (id === Asc.c_oAscError.ID.LoadingScriptError) { if (id === Asc.c_oAscError.ID.LoadingScriptError) {
f7.notification.create({ f7.notification.create({
title: _t.criticalErrorTitle, title: _t.criticalErrorTitle,
@ -31,8 +33,6 @@ const ErrorController = inject('storeAppOptions')(({storeAppOptions, LoadingDocu
Common.Notifications.trigger('preloader:close'); Common.Notifications.trigger('preloader:close');
Common.Notifications.trigger('preloader:endAction', Asc.c_oAscAsyncActionType['BlockInteraction'], LoadingDocument,true); Common.Notifications.trigger('preloader:endAction', Asc.c_oAscAsyncActionType['BlockInteraction'], LoadingDocument,true);
const api = Common.EditorApi.get();
const config = { const config = {
closable: false closable: false
}; };
@ -357,7 +357,10 @@ const ErrorController = inject('storeAppOptions')(({storeAppOptions, LoadingDocu
buttons: [ buttons: [
{ {
text: 'OK', text: 'OK',
onClick: config.callback onClick: () => {
api.asc_enableKeyEvents(true);
config.callback;
}
} }
] ]
}).open(); }).open();