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

Dropdown: element loses focus if option is selected with keyboard #7390

Closed
manuel-bitcraft opened this issue Nov 5, 2024 · 2 comments
Closed
Labels
Resolution: Duplicate Issue has already been reported or a pull request related to same issue has already been submitted

Comments

@manuel-bitcraft
Copy link

Describe the bug

If you select a dropdown option with the mouse: the element get assigned the class "p-inputwrapper-focus" and the attibute "data-p-focus" is true.

If you select a dropdown option with the keyboard and press enter: the element drop the class "p-inputwrapper-focus" and the attibute "data-p-focus" is false

Reproducer

https://stackblitz.com/run?file=src%2FApp.jsx

System Information

System:
    OS: Windows 11 10.0.22631
    CPU: (12) x64 13th Gen Intel(R) Core(TM) i7-1355U
    Memory: 39.19 GB / 63.64 GB
  Binaries:
    Node: 18.20.4 - C:\Program Files\nodejs\node.EXE
    npm: 10.7.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Chromium (128.0.2739.67)
    Internet Explorer: 11.0.22621.3527
  npmPackages:
    primereact: ^10.8.4 => 10.8.4
    react: ^18 => 18.2.0
    tailwindcss: ^3.3.0 => 3.4.1

Steps to reproduce the behavior

No response

Expected behavior

No response

@manuel-bitcraft manuel-bitcraft added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Nov 5, 2024
@melloware melloware added Resolution: Duplicate Issue has already been reported or a pull request related to same issue has already been submitted and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Nov 5, 2024
Copy link

github-actions bot commented Nov 5, 2024

This issue is a duplicate and has already been reported and possibly fixed. Please review other issues both open and closed for a similar issue to this one.

@melloware
Copy link
Member

Duplicate of : #6873

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Duplicate Issue has already been reported or a pull request related to same issue has already been submitted
Projects
None yet
Development

No branches or pull requests

2 participants