From 11174958bc87bc00937d957f6004854f5105dd09 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 11 Oct 2023 23:50:28 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E9=A2=84=E8=A7=88=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E4=B8=8B=E7=82=B9=E5=87=BB=E5=8F=AA=E8=AF=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/protyle/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/protyle/index.ts b/app/src/protyle/index.ts index 35477bec4..113504cd8 100644 --- a/app/src/protyle/index.ts +++ b/app/src/protyle/index.ts @@ -113,7 +113,9 @@ export class Protyle { break; case "transactions": data.data[0].doOperations.forEach((item: IOperation) => { - if (!this.protyle.preview.element.classList.contains("fn__none")) { + if (!this.protyle.preview.element.classList.contains("fn__none") && + item.action !== "updateAttrs" // 预览模式下点击只读 + ) { this.protyle.preview.render(this.protyle); } else { onTransaction(this.protyle, item, false);