fix(editor): for single-select, picking the original option should make the TagManager disappear (#11745)
This commit is contained in:
1 parent
20d4911641
commit
3b4fcbd526
1 file changed
+1
-1
@@ -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