Skip to content

Commit

Permalink
Merge pull request #218 from CoreTeamIO/master
Browse files Browse the repository at this point in the history
fixed first run issue when using default text
  • Loading branch information
softsimon committed Jul 10, 2017
2 parents 4cc1788 + f260243 commit 24546bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dropdown/dropdown.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,9 +292,9 @@ export class MultiselectDropdown implements OnInit, OnChanges, DoCheck, OnDestro

updateTitle() {
if (this.numSelected === 0 || this.settings.fixedTitle) {
this.title = this.texts.defaultTitle || '';
this.title = (this.texts) ? this.texts.defaultTitle : '';
} else if (this.settings.displayAllSelectedText && this.model.length === this.options.length) {
this.title = this.texts.allSelected || '';
this.title = (this.texts) ? this.texts.allSelected : '';
} else if (this.settings.dynamicTitleMaxItems && this.settings.dynamicTitleMaxItems >= this.numSelected) {
this.title = this.options
.filter((option: IMultiSelectOption) =>
Expand Down

0 comments on commit 24546bb

Please sign in to comment.