Primeng multiSelect过滤器文本需要清除'onPanelHide'事件
该文档指定使用回调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
}