我已经在数组中加载了值为30000的p-multiselect。当我点击从下拉列表中选择全部时,浏览器挂起/冻结。 测试用例:Please check test case at plnkr
<p-multiSelect [options]="cities1" [(ngModel)]="selectedCities1"></p-multiSelect>
cities1:any =[];
selectedCities1:any = [];
ngOnInit() {
for (let i=0; i<30000; i++)
this.cities1.push({label:'City'+i, value:'City'+i});
}
请建议。
谢谢!