There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
fix: can not select all block when some block collapsed (#9248)
Flrande43c20c4e05d4
diff --git a/blocksuite/affine/block-paragraph/src/paragraph-block.ts b/blocksuite/affine/block-paragraph/src/paragraph-block.tsindex 169ca49b03..67c9524e5a 100644--- a/blocksuite/affine/block-paragraph/src/paragraph-block.ts+++ b/blocksuite/affine/block-paragraph/src/paragraph-block.ts@@ -160,7 +160,6 @@ export class ParagraphBlockComponent extends CaptionedBlockComponent<if (this.model.type.startsWith('h') && collapsed) {const collapsedSiblings = this.collapsedSiblings;const textSelection = this.host.selection.find('text');- const blockSelections = this.host.selection.filter('block');if (textSelection &&@@ -170,16 +169,6 @@ export class ParagraphBlockComponent extends CaptionedBlockComponent<) {this.host.selection.clear(['text']);}-- if (- blockSelections.some(selection =>- collapsedSiblings.some(- sibling => sibling.id === selection.blockId- )- )- ) {- this.host.selection.clear(['block']);- }}}));