From 0db13f62ebbd8d063035640d03ec77843c17ab88 Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 23 Mar 2018 13:55:24 +1100 Subject: [PATCH] FIX: unable to remove tags from topics in quick save --- .../select-kit/components/mini-tag-chooser.js.es6 | 5 +++++ 1 file changed, 5 insertions(+) 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)); },