From c73c11e46b2703464c4da634e3809ab49e19d3a2 Mon Sep 17 00:00:00 2001 From: zhanghongchuan33 Date: Mon, 9 May 2022 14:35:57 +0800 Subject: [PATCH] Long press bug Signed-off-by: zhanghongchuan33 --- common/component/src/main/ets/components/NoteContentComp.ets | 1 + 1 file changed, 1 insertion(+) diff --git a/common/component/src/main/ets/components/NoteContentComp.ets b/common/component/src/main/ets/components/NoteContentComp.ets index 8469731..5ebb9da 100644 --- a/common/component/src/main/ets/components/NoteContentComp.ets +++ b/common/component/src/main/ets/components/NoteContentComp.ets @@ -364,6 +364,7 @@ export struct ToolBarComp { if (this.lastSectionStatus != undefined) { // 切换为小屏预览模式 this.controllerShow.runJavaScript({ script: "RICH_EDITOR.setInputEnabled(false)" }) + this.sectionStatus = this.lastSectionStatus // 退出全屏时存库 LogUtil.info(TAG, "close note" + this.selectedNoteData.uuid) this.controllerShow.runJavaScript({ script: "save_html_content()" })