FIX: category-chooser search should be scoped to category (#7794)
This commit is contained in:
parent
f3c13d80c9
commit
cea3a027f3
|
@ -30,7 +30,7 @@ export default ComboBoxComponent.extend({
|
|||
}
|
||||
|
||||
if (this.scopedCategoryId) {
|
||||
computedContent = this.categoriesByScope().map(c =>
|
||||
computedContent = this.categoriesByScope(this.scopedCategoryId).map(c =>
|
||||
this.computeContentItem(c)
|
||||
);
|
||||
}
|
||||
|
|
|
@ -45,9 +45,9 @@ componentTest("with scopedCategoryId", {
|
|||
assert.equal(this.subject.rowByIndex(1).value(), 26);
|
||||
assert.equal(this.subject.rows().length, 2);
|
||||
|
||||
await this.subject.fillInFilter("dev");
|
||||
await this.subject.fillInFilter("spec");
|
||||
|
||||
assert.equal(this.subject.rows().length, 3);
|
||||
assert.equal(this.subject.rows().length, 1);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue