Fixed the tag suggestions being shown as [object Object] when added manually to a tag

This commit is contained in:
anbosuki 2024-11-16 21:38:31 +01:00
parent b721865931
commit 49c1c560ad

View file

@ -386,7 +386,7 @@ class TagInputControl extends events.EventTarget {
); );
} }
for (let suggestion of tag.suggestions || []) { for (let suggestion of tag.suggestions || []) {
this._suggestions.set(suggestion, 5); this._suggestions.set(suggestion._origName, 5);
} }
if (this._suggestions.length) { if (this._suggestions.length) {
this._openSuggestionsPopup(); this._openSuggestionsPopup();