fix: handle root block when indent

This commit is contained in:
lawvs
2022-08-12 16:58:54 +08:00
parent bdc61ed02e
commit 42f02aed5c
5 changed files with 28 additions and 14 deletions
@@ -100,7 +100,7 @@ export const TodoView = ({ block, editor }: CreateView) => {
};
const on_tab: TextProps['handleTab'] = async ({ isShiftKey }) => {
await tabBlock(block, isShiftKey);
await tabBlock(editor, block, isShiftKey);
return true;
};