mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: improves tag-list setting (#9574)
- Prevents setting to display an empty tag - Updates dropdown when selecting/removing tag
This commit is contained in:
@@ -66,8 +66,12 @@ export default MultiSelectComponent.extend(TagsMixin, {
|
||||
}),
|
||||
|
||||
actions: {
|
||||
onChange(value) {
|
||||
this.set("tags", value);
|
||||
onChange(value, items) {
|
||||
if (this.attrs.onChange) {
|
||||
this.attrs.onChange(value, items);
|
||||
} else {
|
||||
this.set("tags", value);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user