Merge pull request #266 from toeverything/fix/indent-with-root-id

fix: handle root block when indent
This commit is contained in:
DarkSky
2022-08-16 19:10:56 +08:00
committed by GitHub
5 changed files with 28 additions and 14 deletions
@@ -228,7 +228,7 @@ export const TextView = ({
block.firstCreateFlag = true;
};
const onTab: TextProps['handleTab'] = async ({ isShiftKey }) => {
await tabBlock(block, isShiftKey);
await tabBlock(editor, block, isShiftKey);
return true;
};