fix(editor): behavior when clicking in blank page and backspacing on last group

This commit is contained in:
austaras authored and Austaras committed 2022-08-05 17:38:39 +08:00
1 parent cb86ea8ae5
commit e12deb302f
4 files changed
+34 -19

No files matched your search

@@ -137,7 +137,7 @@ export const TextView: FC<CreateTextView> = ({
!parentChild.length
) {
await editor.selectionManager.setSelectedNodesIds(
[preParent.id]
[preParent?.id ?? editor.getRootBlockId()]
);
}
}