FIX: disable by default limitMatches

This commit is contained in:
Joffrey JAFFEUX
2018-01-11 09:54:39 +01:00
committed by GitHub
parent 3ec2024466
commit 3ee7b18886
5 changed files with 39 additions and 4 deletions

View File

@ -88,7 +88,11 @@ export default SelectKitComponent.extend({
computedContent = this.filterComputedContent(computedContent, computedValue, filter);
}
return computedContent.slice(0, this.get("limitMatches"));
if (this.get("limitMatches")) {
return computedContent.slice(0, this.get("limitMatches"));
}
return computedContent;
},
@computed("computedValue", "computedContent.[]")