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
commit 30d975dac0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -227,7 +227,7 @@ export const CommandMenu = ({ editor, hooks, style }: CommandMenuProps) => {
const nextBlock = await block.nextSibling(); const nextBlock = await block.nextSibling();
setTimeout(() => { setTimeout(() => {
editor.selectionManager.activeNodeByNodeId(nextBlock.id); editor.selectionManager.activeNodeByNodeId(nextBlock.id);
}); }, 100);
if (block.blockProvider.isEmpty()) { if (block.blockProvider.isEmpty()) {
block.remove(); block.remove();
} }