fix(editor): for single-select, picking the original option should make the TagManager disappear (#11745)

This commit is contained in:
Xun Sun
2025-04-24 10:09:00 +08:00
committed by GitHub
parent 20d4911641
commit 3b4fcbd526
@@ -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];