Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Component: p-multiselect - double click on multiselect "button" causes modal window to jump around before disappearing #14442

Closed
aleksandermpiekarz opened this issue Dec 27, 2023 · 0 comments · Fixed by #14749
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@aleksandermpiekarz
Copy link

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

  1. Go to https://primeng.org/multiselect
  2. Quick double click on any non-disabled multiselect

Expected behavior

On quick double click multiselect list shows then disappears

@aleksandermpiekarz aleksandermpiekarz added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Dec 27, 2023
@mehmetcetin01140 mehmetcetin01140 self-assigned this Feb 7, 2024
@mehmetcetin01140 mehmetcetin01140 added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Feb 7, 2024
@mehmetcetin01140 mehmetcetin01140 added this to the 17.6.0 milestone Feb 7, 2024
mehmetcetin01140 added a commit that referenced this issue Feb 7, 2024
…s modal window to jump around before disappearing
cetincakiroglu added a commit that referenced this issue Feb 7, 2024
Fixed #14442 - Multiselect | double click on multiselect button cause…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants