Skip to content

Commit

Permalink
fixed first run issue when using default text
Browse files Browse the repository at this point in the history
  • Loading branch information
DoryZi committed Jul 10, 2017
1 parent 4cc1788 commit f260243
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 f260243

Please sign in to comment.