mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-22 20:46:38 +08:00
Fix/group select (#378)
* fix(select): group selecet * fix(selection): more robust * refactor(selection): better group Co-authored-by: DarkSky <25152247+darkskygit@users.noreply.github.com>
This commit is contained in:
@@ -256,6 +256,7 @@ export class SelectionManager implements VirgoSelection {
|
||||
const rootBlockId = this._editor.getRootBlockId();
|
||||
const rootBlock = await this._editor.getBlockById(rootBlockId);
|
||||
const children = await rootBlock?.children();
|
||||
|
||||
if (children) {
|
||||
this.setSelectedNodesIds(children.map(({ id }) => id));
|
||||
// blur focused element and blur it
|
||||
|
||||
Reference in New Issue
Block a user