Skip to content

A platform for community discussion. Free, open, simple.

FIX: unable to remove tags from topics in quick save

Sam0db13f62ebbd
diff --git a/app/assets/javascripts/select-kit/components/mini-tag-chooser.js.es6 b/app/assets/javascripts/select-kit/components/mini-tag-chooser.js.es6
index 74b93f106a1..b3c6929a127 100644
--- a/app/assets/javascripts/select-kit/components/mini-tag-chooser.js.es6
+++ b/app/assets/javascripts/select-kit/components/mini-tag-chooser.js.es6
@@ -168,7 +168,12 @@ export default ComboBox.extend(Tags, {
destroyTags(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.set("tags", this.get("tags").slice(0));
+
this.set("searchDebounce", run.debounce(this, this._prepareSearch, this.get("filter"), 350));
},