[BUG] - Escape Key Deselects All Options in Select Component
Opened this issue · 2 comments
kimskovhusandersen commented
NextUI Version
2.4.8
Describe the bug
When the Escape key is pressed while the select dropdown is open, all selected options are deselected. This behavior is unexpected, as the Escape key should ideally close the dropdown without affecting the selections.
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
Open the select dropdown.
Select one or more options (if multi-select).
Press the Escape key while the dropdown is open.
Expected behavior
Pressing the Escape key should close the dropdown without changing the selected options.
Screenshots or Videos
Screen.Recording.2024-11-19.at.11.57.56.mov
Operating System Version
macOS
Browser
Chrome
ryo-manba commented
It seems the same issue might exist in the single select as well.