I use opend property bind a function like this:
<ng-select #typeSelect [allowClear]="true"
[items]="itemsType"
[active]="typeSelected"
[disabled]="disabled"
(opened)="open('ngSelectType',$event)"
(selected)="selectedType($event)"
(removed)="removedType($event)"
placeholder="选择类型">
when i click my page anywhere ,the function open will run
I use opend property bind a function like this: <ng-select #typeSelect [allowClear]="true" [items]="itemsType" [active]="typeSelected" [disabled]="disabled" (opened)="open('ngSelectType',$event)" (selected)="selectedType($event)" (removed)="removedType($event)" placeholder="选择类型">
when i click my page anywhere ,the function open will run