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(editor): for single-select, picking the original option should make the TagManager disappear (#11745)
Xun Sun3b4fcbd52678
diff --git a/blocksuite/affine/data-view/src/core/component/tags/multi-tag-select.ts b/blocksuite/affine/data-view/src/core/component/tags/multi-tag-select.tsindex 0aaa1e8d21..be1383eee9 100644--- a/blocksuite/affine/data-view/src/core/component/tags/multi-tag-select.ts+++ b/blocksuite/affine/data-view/src/core/component/tags/multi-tag-select.ts@@ -177,7 +177,7 @@ class TagManager {}selectTag(id: string) {- if (this.isSelected(id)) {+ if (!this.isSingleMode && this.isSelected(id)) {return;}const newValue = this.isSingleMode ? [id] : [...this.value$.value, id];