Skip to content

Commit

Permalink
fix: disable input when max items is selected
Browse files Browse the repository at this point in the history
closes #1168
  • Loading branch information
varnastadeus committed May 18, 2019
1 parent 0afa9c1 commit 240f4b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ng-select/ng-select.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
[attr.tabindex]="tabIndex"
[attr.autocorrect]="autoCorrect"
[attr.autocapitalize]="autoCapitalize"
[readOnly]="!searchable"
[readOnly]="!searchable || itemsList.maxItemsSelected"
[disabled]="disabled"
[value]="filterValue ? filterValue : ''"
(input)="filter(filterInput.value)"
Expand Down

0 comments on commit 240f4b5

Please sign in to comment.