FIX: unable to remove tags from topics in quick save

This commit is contained in:
Sam 2018-03-23 13:55:24 +11:00
parent ff6b47b0cf
commit 0db13f62eb
1 changed files with 5 additions and 0 deletions

View File

@ -168,7 +168,12 @@ export default ComboBox.extend(Tags, {
destroyTags(tags) { destroyTags(tags) {
tags = Ember.makeArray(tags); tags = Ember.makeArray(tags);
// work around usage with buffered proxy
// it does not listen on array changes, similar hack already on select
// TODO: FIX buffered-proxy.js to support arrays
this.get("tags").removeObjects(tags); this.get("tags").removeObjects(tags);
this.set("tags", this.get("tags").slice(0));
this.set("searchDebounce", run.debounce(this, this._prepareSearch, this.get("filter"), 350)); this.set("searchDebounce", run.debounce(this, this._prepareSearch, this.get("filter"), 350));
}, },