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

Fancy Box is not working when used in a Sheet #10

Open
jangrunicke opened this issue Jul 24, 2023 · 0 comments
Open

Fancy Box is not working when used in a Sheet #10

jangrunicke opened this issue Jul 24, 2023 · 0 comments

Comments

@jangrunicke
Copy link

jangrunicke commented Jul 24, 2023

Hey,

so I built my own reusable fancy box component based on the one provided in this repo. When using it normally it works completely fine but inside a Sheet component the popover closes when toggling a command item. Somehow the focus gets stolen by the sheet.content primitive component. I could not figure out why this happens or how to prevent this.

You can find a copy of my implementation here: https://gist.github.com/jangrunicke/d68c0b5c57ec03713a937401c3710d39

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant