mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-24 04:27:27 +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) {
|
selectTag(id: string) {
|
||||||
if (this.isSelected(id)) {
|
if (!this.isSingleMode && this.isSelected(id)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const newValue = this.isSingleMode ? [id] : [...this.value$.value, id];
|
const newValue = this.isSingleMode ? [id] : [...this.value$.value, id];
|
||||||
|
|||||||
Reference in New Issue
Block a user