Component: p-dropdown emits changes when selected option did not change #14788
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
We recently updated from PrimeNG 15 to 17.
There seems to be a change in the behavior of the p-dropdown component:
Back in v15, when selecting the already selected option in a p-dropdown again, no change would be emitted. Now in v17 it does seem to do so.
The issue can be cruedly reproduced using the official component docs:
V15:
V17
The question is: Is this new desired behavior or a regression?
Environment
primeng: 17.6
angular: 17.1
Reproducer
No response
Angular version
17.1.0
PrimeNG version
17.6.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
18.16.0
Browser(s)
Chrome 120
Steps to reproduce the behavior
Open the docs on v15 and v17 as described above:
v15: https://www.primefaces.org/primeng-v15-lts/table#filter-row
v17: https://primeng.org/table#filter-row
Expected behavior
We would expect no emission of a change by p-dropdown when the already selected option is clicked again in the p-dropdown.
The text was updated successfully, but these errors were encountered: