Merge pull request #1341 from ONLYOFFICE/feature/bug-fixes

Feature/bug fixes
This commit is contained in:
maxkadushkin 2021-11-23 10:58:38 +03:00 committed by GitHub
commit 983c2a94a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 5 deletions

View file

@ -18,6 +18,8 @@ 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({
@ -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();

View file

@ -109,7 +109,7 @@ const CellEditorView = props => {
</div>
<div className="ce-group group--content" style={contentStyle}>
<div id="idx-list-target" className="target-function-list"></div>
<textarea id="idx-cell-content" spellCheck="false" />
<textarea id="idx-cell-content" spellCheck="false" onFocus={(e) => {wsLock && e.target.blur()}}/>
</div>
<div className="ce-group">
<Link icon="caret" onClick={expandClick} />