Skip to content

Commit

Permalink
fix: set input width to 0 when not searchable
Browse files Browse the repository at this point in the history
closes #651
  • Loading branch information
varnastadeus committed Aug 15, 2018
1 parent ba77539 commit 056f34f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions demo/app/examples/multi.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { DataService } from '../shared/data.service';
[items]="people$1 | async"
[multiple]="true"
[closeOnSelect]="false"
[searchable]="false"
bindLabel="name"
placeholder="Select people"
[(ngModel)]="selectedPeople1">
Expand Down
2 changes: 2 additions & 0 deletions src/ng-select/ng-select.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@
}
&[readonly] {
user-select: none;
width: 0;
padding: 0;
}
}
}
Expand Down

0 comments on commit 056f34f

Please sign in to comment.