valor-software / ng2-select

Angular based replacement for select boxes
http://valor-software.github.io/ng2-select/
MIT License
676 stars 588 forks source link

opened will run when click everywhere #899

Open qingbingyan opened 6 years ago

qingbingyan commented 6 years ago

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