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]: Cannot close a select inside of a sheet by pressing Escape #6806

Open
2 tasks done
Sashkan opened this issue Feb 28, 2025 · 2 comments
Open
2 tasks done

[bug]: Cannot close a select inside of a sheet by pressing Escape #6806

Sashkan opened this issue Feb 28, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@Sashkan
Copy link

Sashkan commented Feb 28, 2025

Describe the bug

Pressing escape while a Select component is open inside of an open Sheet component results in the page being stuck.

Affected component/components

Sheet, Select

How to reproduce

Put a Select component inside a Sheet component.

Open the sheet, open the select

Press Escape: the sheet closes, and I cannot interact with anything on the page.

I assume it is because of the way keypress events are handled, having both the Select and the Sheet open should close both.

Codesandbox/StackBlitz link

No response

Logs

System Info

Tested on Arc

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues
@Sashkan Sashkan added the bug Something isn't working label Feb 28, 2025
@LukasKri
Copy link

LukasKri commented Mar 2, 2025

Have you checked the browser logs? I get the similar issue when I add Select component inside Dialog and if you open the Dialog and then open the Select component and press escape - the dialog closes and browser hangs and logs this error: "(7) Uncaught ResizeObserver loop completed with undelivered notifications".

I use it with Next.js client component.

@Sashkan
Copy link
Author

Sashkan commented Mar 5, 2025

@LukasKri Nope, for me it is because closing the select using Esc adds a "pointer-events: none" to my body tag, therefore blocking the entire app

My current workaround is to remove it in my global CSS file

body {
  pointer-events: all !important;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants