Dropdown onChange - Argument of type 'DropdownChangeEvent' is not assignable to parameter #14456
Labels
Resolution: Cannot Replicate
Issue could not be replicated by Core Team
Resolution: Stale
Issue or pull request is inactivity and unfortunately it will be *closed* if there is no response
Describe the bug
On "ng serve" -> Failed to compile with this error: error TS2345: Argument of type 'DropdownChangeEvent' is not assignable to parameter of type 'Event'. Type 'DropdownChangeEvent' is missing the following properties from type 'Event': bubbles, cancelBubble, cancelable, composed, and 18 more.
Environment
<p-dropdown
#dropdown_i
styleClass="m-dropdownOverride"
scrollHeight="160px"
[autoDisplayFirst]="false"
[options]="tipos"
name="input1"
[(ngModel)]="tipoSelected"
optionLabel="mvalue"
(onChange)="myFunc($event)" <<----This
[showClear]="true"
formControlName="type_unit"
>
Reproducer
No response
Angular version
17.0.8
PrimeNG version
17.3.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
20.10.0
Browser(s)
Chrome
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: