Skip to content

Commit

Permalink
Merge pull request #409 from Conrad777/master
Browse files Browse the repository at this point in the history
fix(isCheckboxDisabled): isLabel option breaks disabled check
  • Loading branch information
softsimon authored Apr 19, 2018
2 parents 9dc9475 + bbf259e commit 70e3382
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/dropdown/dropdown.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@
</span>
</span>
<ng-template #label>
<span [class.disabled]="isCheckboxDisabled()">{{ option.name }}</span>
<span [class.disabled]="isCheckboxDisabled(option)">{{ option.name }}</span>
</ng-template>
</a>
</div>
</div>
</div>
4 changes: 2 additions & 2 deletions src/dropdown/dropdown.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -642,8 +642,8 @@ export class MultiselectDropdownComponent
}
}

isCheckboxDisabled(option: IMultiSelectOption): boolean {
return this.disabledSelection || option.disabled;
isCheckboxDisabled(option?: IMultiSelectOption): boolean {
return this.disabledSelection || option && option.disabled;
}

checkScrollPosition(ev) {
Expand Down

0 comments on commit 70e3382

Please sign in to comment.