Skip to content

Commit

Permalink
fixed primefaces#8116 MultiSelect: selectionLimit causes options to b…
Browse files Browse the repository at this point in the history
…e in disabled-state
  • Loading branch information
yigitfindikli authored and JacobSiegle committed Oct 2, 2019
1 parent 9258898 commit bf4f885
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/multiselect/multiselect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ export class MultiSelect implements OnInit,AfterViewInit,AfterContentInit,AfterV
}

checkSelectionLimit() {
if (this.selectionLimit && (!this.value || this.value.length === this.selectionLimit)) {
if (this.selectionLimit && (this.value && this.value.length === this.selectionLimit)) {
this.maxSelectionLimitReached = true;
}
}
Expand Down

0 comments on commit bf4f885

Please sign in to comment.