mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-14 00:26:51 +08:00
fix(editor): for single-select, picking the original option should make the TagManager disappear (#11745)
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user