From b821da80f8dab4f1b035da1606ac0cc6812aeef5 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Thu, 25 Jan 2018 10:41:10 +0100 Subject: [PATCH] FIX: makes sure allowUncategorized is passed to underlying component --- .../select-kit/components/category-chooser.js.es6 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/assets/javascripts/select-kit/components/category-chooser.js.es6 b/app/assets/javascripts/select-kit/components/category-chooser.js.es6 index 47a319e066a..21d0e3f7991 100644 --- a/app/assets/javascripts/select-kit/components/category-chooser.js.es6 +++ b/app/assets/javascripts/select-kit/components/category-chooser.js.es6 @@ -15,6 +15,14 @@ export default ComboBoxComponent.extend({ noneRowComponent: "none-category-row", allowSubCategories: true, + init() { + this._super(); + + this.get("rowComponentOptions").setProperties({ + allowUncategorized: this.get("allowUncategorized"), + }); + }, + filterComputedContent(computedContent, computedValue, filter) { if (isEmpty(filter)) { return computedContent; }