Javascript 鼠标移动时ng select触发器上的更改检测

Javascript 鼠标移动时ng select触发器上的更改检测,javascript,angularjs,angular2-changedetection,angular-ngselect,angular-changedetection,Javascript,Angularjs,Angular2 Changedetection,Angular Ngselect,Angular Changedetection,我使用ng select在下拉列表中显示一些选项。下拉列表中还有一个过滤器字段。当我开始在filter字段中输入时,它应该过滤掉选项,而不是。相反,当我移动鼠标时,它会做出反应。所以我认为这与变化检测有关 我的代码: <ng-select [ngStyle]="styleObject" id="ngSelect" [options]="all_options" [ngModel]="value" no

我使用ng select在下拉列表中显示一些选项。下拉列表中还有一个过滤器字段。当我开始在filter字段中输入时,它应该过滤掉选项,而不是。相反,当我移动鼠标时,它会做出反应。所以我认为这与变化检测有关

我的代码:

<ng-select [ngStyle]="styleObject" id="ngSelect" [options]="all_options" [ngModel]="value" 
    notFoundMsg="no results found" (opened)="onOpen()" (closed)="onClosed()" (filterInputChanged)="onFilterChange()">
</ng-select>
onFilterChange() {
        this.changeDetection.markForCheck();
}