Cannot click the toolbars inside the modal #284
-
I'm currently using the Dialog component from Shadcn UI, and I'm experiencing an issue where I cannot click on any toolbar elements within the dialog. |
Beta Was this translation helpful? Give feedback.
Answered by
igordanchenko
Jun 19, 2024
Replies: 1 comment 3 replies
-
Please share a repro. You can use the following sandbox as a template. https://stackblitz.com/edit/yet-another-react-lightbox-sandbox?file=src%2FApp.tsx |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you very much for providing the sandbox. The behavior you see is happening due to Radix UI Dialog adding
pointer-events: none
style to the document<body>
:Here is the workaround you can use to counter this behavior: