FIX: prevents multiple search call when destroying multiple tags

This commit is contained in:
Joffrey JAFFEUX 2018-03-22 18:11:47 +01:00 committed by GitHub
parent 037cc63b91
commit 841e2ba723
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {