primefaces / primeng

The Most Complete Angular UI Component Library
https://primeng.org
Other
9.53k stars 4.47k forks source link

P-listbox onFocus() Event is not working in Angular 17 #15356

Open sarangrajan948 opened 2 weeks ago

sarangrajan948 commented 2 weeks ago

Describe the bug

OnFocus() event is not working on Primeng

Environment

OnFocus() event is not working on Primeng Listbox.

<p-listbox [options]="rentalLocationsName" [(ngModel)]="selectedLocation" (onFocus)="onListFocus()" (onBlur)="onBlurMouse()" [filter]="true" [style]="{ width: '15rem' }" [listStyle]="{'max-height': '220px'}">
onListFocus() {
console.log('list focused!');
}

Reproducer

No response

Angular version

17.3

PrimeNG version

17.12

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

18.18

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

asphub commented 2 weeks ago

I am also facing the same issue. Is there any alternative ways to fix this.