mirror of
https://github.com/toeverything/AFFiNE.git
synced 2025-01-09 04:10:09 +03:00
Merge pull request #400 from toeverything/feat/command-search
Feat/command search
This commit is contained in:
commit
30d975dac0
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user