Issue with Select Component Overlay Persisting After Dialog Closes in Nested Structures #3204
Unanswered
DjurovicAleksandar
asked this question in
Help
Replies: 1 comment
-
Update: Using this : if (!open) {
setTimeout(() => {
document.body.style.pointerEvents = 'auto';
}, 0);
} Does fix the issue, but I am not sure this is most optimal for React. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm experiencing an issue with a
Select
component inside aDialog
. When I open theDialog
, then open theSelect
inside it, and click outside everything, theDialog
closes as expected. However, it appears that an overlay or element from theSelect
remains open, making the page unresponsive to clicks until I reload.I’ve temporarily fixed this by setting the
Select
's open state tofalse
whenever theDialog
closes, like this:However, this isn’t ideal, as I have several deeply nested
Select
components within dialogs (e.g.,Dialog > Tabs > Select
). I tried setting theSelect
's portalcontainer
to the dialog element, but that only works for simpler setups and fails with nested structures.Do you have any recommendations for handling this issue with nested dialogs and
Select
components?Beta Was this translation helpful? Give feedback.
All reactions