Component: p-multiselect - double click on multiselect "button" causes modal window to jump around before disappearing #14442
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
Quick double click on multiselect causes it to jump around before disappearing - it shows two multiselects in the same time for short amount of time then it disappears.
The problem is that after a quick second click, instead of closing, the multiselect shows up a second time because the first one has not had time to render yet. This is visible only for a fraction of a second, but if we attach logic to the events of opening and closing the multiselect, a series of unexpected errors may appear (for example, saving and restoring changes after closing the multiselect list).
it can be reproduced on f.e. prime-ng docs: https://primeng.org/multiselect
Bug in action:
https://github.com/primefaces/primeng/assets/48812006/808ec3b3-6cdc-4741-b7ad-73a0417100f0
Environment
Mac, chrome version: 120.0.6099.109 (arm64)
Reproducer
No response
Angular version
any
PrimeNG version
17.2.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
any
Browser(s)
chrome 120.0.6099.109 (arm64)
Steps to reproduce the behavior
Expected behavior
On quick double click multiselect list shows then disappears
The text was updated successfully, but these errors were encountered: