Skip to content

How to get rid of the pointer-event none when opening a dialog. #1720

Discussion options

You must be logged in to vote

Hey @popoleeMaster,

Toast also uses DismissableLayer so should be part of the stack. Are you using the latest versions of both primitives? There can be some issues with the layering if they aren't both using the same underlying dismissable layer version.

Alternatively, if it's because your toasts are not using Radix toast but another library, you can just set pointer-events: auto on them.

Worse case scenario, you can make your dialog non-modal by setting modal={false} but be aware that this changes accessibility semantics as it means one can always fully interact outside the dialog when open (no scroll locking, no overlay, etc).

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@popoleeMaster
Comment options

@QzCurious
Comment options

Answer selected by popoleeMaster
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
4 participants