我正在使用ng-multiselect-dropdown。我对其中一个回调有疑问
<ng-multiselect-dropdown *ngIf="filteredSids.length > 0"
[data]="filteredSids"
[disabled]="false"
[(ngModel)]="selectedSids"
(onSelect)="selectedSIDs($event); onItemSelect($event)"
(onSelectAll)="onSelectAll($event)"
(onDeSelect)="onItemDeSelect($event)"
(onDeSelectAll)="onDeSelectAll($event)"
[settings]="dropdownSettings"
(onDropDownClose)="onCloseDialog($event)">
</ng-multiselect-dropdown>
onDropDownClose回调不仅在取消下拉菜单时触发,而且在我单击页面中的任意位置时触发。即使下拉菜单处于关闭状态,它也会被触发。我确实需要仅在下拉菜单关闭时才触发此操作。任何帮助表示赞赏。