Skip to content
This repository was archived by the owner on Jan 16, 2026. It is now read-only.

Commit d7049f1

Browse files
committed
Bug fixes
1 parent eb09ff3 commit d7049f1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/pages/worksheet/worksheet.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,8 @@ document.addEventListener("DOMContentLoaded", async () => {
527527
el.addEventListener("click", async () => {
528528
const newBlock = addNewBlock();
529529
newBlock.showPage(WorksheetBlockType.Paragraph);
530+
newBlock.setBlockType(WorksheetBlockType.Paragraph);
531+
newBlock.showPage(`#${newBlock.id}-${WorksheetBlockType.Paragraph}`);
530532
blocks.push(newBlock);
531533
if (!worksheetLoaded) return;
532534
await preview.render();

0 commit comments

Comments
 (0)