From dacbc17ecaf30dfd9178cf039f3ef60ea628cb05 Mon Sep 17 00:00:00 2001 From: Andrey Shimagin Date: Tue, 12 Apr 2022 10:33:52 +0300 Subject: [PATCH] [DE] Fix Bug 56545 --- apps/documenteditor/mobile/src/controller/Main.jsx | 1 + apps/documenteditor/mobile/src/view/edit/EditText.jsx | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/apps/documenteditor/mobile/src/controller/Main.jsx b/apps/documenteditor/mobile/src/controller/Main.jsx index e673ca908..6d06f301a 100644 --- a/apps/documenteditor/mobile/src/controller/Main.jsx +++ b/apps/documenteditor/mobile/src/controller/Main.jsx @@ -617,6 +617,7 @@ class MainController extends Component { default: storeTextSettings.resetBullets(-1); storeTextSettings.resetNumbers(-1); + storeTextSettings.resetMultiLevel(-1); } }); this.api.asc_registerCallback('asc_onPrAlign', (align) => { diff --git a/apps/documenteditor/mobile/src/view/edit/EditText.jsx b/apps/documenteditor/mobile/src/view/edit/EditText.jsx index 7299327b0..df633be76 100644 --- a/apps/documenteditor/mobile/src/view/edit/EditText.jsx +++ b/apps/documenteditor/mobile/src/view/edit/EditText.jsx @@ -286,11 +286,11 @@ const PageMultiLevel = observer(props => { {arrayMultiLevel.map((item) => ( - { - item.type === -1 ? storeTextSettings.resetMultiLevel(-1) : storeTextSettings.resetMultiLevel(null); - props.onMultiLevelList(item.type); - }}> + props.onMultiLevelList(item.type)}> {item.thumb.length < 1 ?