🐛 预览模式下点击只读

This commit is contained in:
Vanessa 2023-10-11 23:50:28 +08:00
parent 130884d758
commit 11174958bc

View file

@ -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);