Merge pull request #400 from toeverything/feat/command-search

Feat/command search
This commit is contained in:
DarkSky
2022-09-10 17:44:56 +08:00
committed by GitHub
@@ -227,7 +227,7 @@ export const CommandMenu = ({ editor, hooks, style }: CommandMenuProps) => {
const nextBlock = await block.nextSibling();
setTimeout(() => {
editor.selectionManager.activeNodeByNodeId(nextBlock.id);
});
}, 100);
if (block.blockProvider.isEmpty()) {
block.remove();
}