Description
Bug report
The dom body element receives the pointer-events: none
when AlertDialog is opened and remains after closing. This causes the whole page to freeze and not respond to any user interaction.
Current Behavior
I have tested it to be happening on AlertDialog component only when using the api to open and close the dialog ie. open
and onOpenChanged
props. It works fine when using Trigger component
Expected behavior
Let user interaction not be blocked after interacting with the following components AlertdDialog, HoverCard, Popover and Toast
Suggested solution
I traced the issue to come from the @radix-ui/react-dismissable-layer library, version 1.0.5 Precisely.
I have tried version 1.0.3 of @radix-ui/react-dismissable-layer and the bug does not happen on that version.
I had to downgrade other components that use @radix-ui/react-dismissable-layer like AlertdDialog, HoverCard, Popover and Toast to previous versions that depend on 1.0.3 to have it working again.
Can the issue be found and fixed in version 1.0.6 of @radix-ui/react-dismissable-layer and maintained to never happen again?
Additional context
It relates to this other issue #1241