Primeng multiSelect过滤器文本需要在“ onPanelHide”事件上清除
答案 0 :(得分:0)
文档指定使用回调onPanelHide
https://www.primefaces.org/primeng/#/multiselect
<p-multiSelect (onPanelHide)="handlePanelHide()" [options]="cities1" [(ngModel)]="selectedCities1"></p-multiSelect>
然后在您的组件中执行逻辑以进行过滤
public handlePanelHide(): void {
// Filter the options with your custom logic
}