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

More than one dropdown can be opened at a time #11455

Closed
PrashanthThomas opened this issue Apr 26, 2022 · 2 comments · Fixed by #11469
Closed

More than one dropdown can be opened at a time #11455

PrashanthThomas opened this issue Apr 26, 2022 · 2 comments · Fixed by #11469
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@PrashanthThomas
Copy link

I'm submitting a ... (check one with "x")

[x] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

PrimeNg Component Demo Page (Bug Reports)
https://www.primefaces.org/primeng/dropdown

Current behavior
In a combination of keyboard events and mouse events, two dropdowns can have their lists shown at the same time.

Expected behavior
Once a dropdown looses focus, it should automatically hide its list, if open.

Minimal reproduction of the problem with instructions
image

  1. Bring the Basic Dropdown to focus.
  2. Use Space/Enter to open the dropdown list.
  3. Click on any other dropdown

Notice that two dropdowns are open at the same time
image

What is the motivation / use case for changing the behavior?
Our application works with forms, there are a lot of dropdowns which the customer can shift between. Customers prefer using the keyboard to shift through input fields. But in certain cases they may use the mouse to jump to another dropdown while one is already open. The visual result is not desirable.

  • Angular version: 13.X

  • PrimeNG version: 13.3.3

  • **Browser:**Chrome, Firefox and more

  • Language: [all | TypeScript X.X | ES6/7 | ES5]

  • Node (for AoT issues): node --version = 16.13.2

@chaitrashenoy33
Copy link

chaitrashenoy33 commented Apr 26, 2022

even i'am facing same issue. its really helpful if we get solution to this feature

@sridhark158
Copy link

+1

even I'm looking for the solution

i found this issue after upgrading prime NG

@cetincakiroglu cetincakiroglu self-assigned this Apr 28, 2022
@cetincakiroglu cetincakiroglu added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Apr 28, 2022
@cetincakiroglu cetincakiroglu added this to the 13.4.0 milestone Apr 29, 2022
yigitfindikli added a commit that referenced this issue Apr 29, 2022
Fixed #11455 - Dropdown | More than one dropdown can be opened at a time
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.

4 participants