From 240f4b5da7c2725b0b12dd490141abdbd1205bf6 Mon Sep 17 00:00:00 2001 From: varnastadeus Date: Sat, 18 May 2019 17:56:12 +0300 Subject: [PATCH] fix: disable input when max items is selected closes #1168 --- src/ng-select/ng-select.component.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ng-select/ng-select.component.html b/src/ng-select/ng-select.component.html index 66a4b5197..c2eb5e3a2 100644 --- a/src/ng-select/ng-select.component.html +++ b/src/ng-select/ng-select.component.html @@ -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)"