mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-25 18:26:05 +08:00
fix(core): editor blur unexpectedly when clicking blank area (#10501)
### Before https://github.com/user-attachments/assets/3c4b20e1-6d89-4dc7-a51f-04b6e9a89486 ### After https://github.com/user-attachments/assets/86b93403-597e-4dbb-ab65-90908342c230
This commit is contained in:
@@ -151,6 +151,7 @@ export const BlocksuiteEditorContainer = forwardRef<
|
||||
const focusBlock = std.view.getBlock(lastBlock.id) ?? undefined;
|
||||
std.command.exec(focusBlockEnd, {
|
||||
focusBlock,
|
||||
force: true,
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user