Skip to content

Commit

Permalink
Merge pull request #334 from demo-igor/patch-2
Browse files Browse the repository at this point in the history
this.lazyLoadOptions is an array so it will be true all time
  • Loading branch information
softsimon authored Nov 24, 2017
2 parents 4b9d7d2 + 5fad3e2 commit db7f23f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dropdown/dropdown.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ export class MultiselectDropdown implements OnInit, OnChanges, DoCheck, OnDestro
} else if (this.settings.displayAllSelectedText && this.model.length === numSelectedOptions) {
this.title = (this.texts) ? this.texts.allSelected : '';
} else if (this.settings.dynamicTitleMaxItems && this.settings.dynamicTitleMaxItems >= this.numSelected) {
let useOptions = this.settings.isLazyLoad && this.lazyLoadOptions ? this.lazyLoadOptions : this.options;
let useOptions = this.settings.isLazyLoad && this.lazyLoadOptions.length ? this.lazyLoadOptions : this.options;
this.title = useOptions
.filter((option: IMultiSelectOption) =>
this.model.indexOf(option.id) > -1
Expand Down

0 comments on commit db7f23f

Please sign in to comment.