Skip to content

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

FIX: makes sure allowUncategorized is passed to underlying component

Joffrey JAFFEUXb821da80f8da
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; }