MultiSelect: onPanelHide triggers twice #12382
Labels
LTS-PORTABLE
Issue's fix will be ported to supported LTS versions
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
We are using multiple multiSelects in our applications and after upgrading primeng from 13.1.1 to 14.2.2 (along with an upgrade to Angular v14), the (onPanelHide) event seems to trigger twice. On 13.1.1 everything worked fine.
After a few tests in the Stackblitz, it seems that the bug has been introducted with PrimeNG v14.2.0. On v14.1.x eveything works as expected.
Environment
Angular v14.2
Node 16.15.0
Reproducer
https://github-97sg5b.stackblitz.io/
Angular version
14.2.12
PrimeNG version
14.2.2
Build / Runtime
TypeScript
Language
TypeScript
Node version (for AoT issues node --version)
16.15.0
Browser(s)
Chrome, Firefox
Steps to reproduce the behavior
In the Stackblitz:
Expected behavior
I expect the onPanelHide event to be triggered only once when closing the panel of the multiSelect.
The text was updated successfully, but these errors were encountered: