Skip to content

Commit

Permalink
🐛 预览模式下点击只读
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Oct 11, 2023
1 parent 130884d commit 1117495
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/src/protyle/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1117495

Please sign in to comment.