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

[BUG] - Escape Key Deselects All Options in Select Component #4114

Open
kimskovhusandersen opened this issue Nov 19, 2024 · 2 comments
Open
Labels
🐛 Type: Bug Something isn't working

Comments

@kimskovhusandersen
Copy link

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

Copy link

linear bot commented Nov 19, 2024

@ryo-manba
Copy link
Member

It seems the same issue might exist in the single select as well.

@ryo-manba ryo-manba added the 🐛 Type: Bug Something isn't working label Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants