问题描述
我正在使用ng-select在下拉列表中显示一些选项。下拉菜单中还有一个过滤器字段。当我开始在过滤器字段中键入内容时,应该过滤掉选项,而不会。相反,当我移动鼠标时它会做出反应。因此,我认为它与变更检测有关。
我的代码:
<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();
}
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)