mirror of
https://github.com/discourse/discourse.git
synced 2025-01-31 02:49:29 +08:00
FIX: prevents multiple search call when destroying multiple tags
This commit is contained in:
parent
037cc63b91
commit
841e2ba723
|
@ -169,7 +169,7 @@ export default ComboBox.extend(Tags, {
|
||||||
destroyTags(tags) {
|
destroyTags(tags) {
|
||||||
tags = Ember.makeArray(tags);
|
tags = Ember.makeArray(tags);
|
||||||
this.get("tags").removeObjects(tags);
|
this.get("tags").removeObjects(tags);
|
||||||
this._prepareSearch(this.get("filter"));
|
this.set("searchDebounce", run.debounce(this, this._prepareSearch, this.get("filter"), 350));
|
||||||
},
|
},
|
||||||
|
|
||||||
didDeselect(tags) {
|
didDeselect(tags) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user