Compiler error: [p-autoComplete] Argument of type 'Event' is not assignable to parameter of type 'MouseEvent' #13227
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
In this specific case:
<p-autoComplete #autoComplete styleClass="p-custom-autocomplete default-input-field" [(ngModel)]="selectedPlaceShownText" [suggestions]="placesPredictions!" (onSelect)="selectPlace($event)" (onClear)="closeDropdown()" (completeMethod)="searchPlaces($event)" (onFocus)="autoComplete.handleDropdownClick($event)"
When compiling the app, the compiler gives me the following error:

There is definitely something wrong with the package because here the param is Event (autocomplete.d.ts)

But the function requires MouseEvent as a param.

I can't fix this issue and can't find any workaround so I think the team should look into this.
Environment
Local.
Reproducer
No response
Angular version
16.1.0
PrimeNG version
16.0.1
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
18.16.0
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
It should be changed to
Event
, probably... As I saw that was used in previous versions.The text was updated successfully, but these errors were encountered: