Dropdown: element loses focus if option is selected with keyboard #7390
Labels
Resolution: Duplicate
Issue has already been reported or a pull request related to same issue has already been submitted
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
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: