Dropdown: Triggers 3 onChange events when rendered (two empty) #14136
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
If the
dropdown
is configured with the following properties, it will launch 3onChange
events.Events received:
value
of the first item of the list as if selectedundefined
originalEvent
andnull
value
undefined
originalEvent
andundefined
value
Configuration of the component:
Environment
Angular: 16.2.7
PrimeNG: 16.7.2
Browser: latest Chrome
Reproducer
https://stackblitz.com/edit/g7rjd1-mfrw5d
Angular version
16.2.7
PrimeNG version
16.7.2
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
16.20.2
Browser(s)
No response
Steps to reproduce the behavior
onChange
triggerExpected behavior
Should not launch three
onChange
events when rendered. The first item marking as selected in the initial event should not happen.The text was updated successfully, but these errors were encountered: