Skip to content

Remove backdrop from Modal component to enable click on background elements? #2449

Answered by alphaxek
J4v4Scr1pt asked this question in Help
Discussion options

You must be logged in to vote

Hi @J4v4Scr1pt , not sure if its the correct way to do it but the workaround is related to the z-index, Model opens in z-index 50 (tv prop z-50), and background layer of Model covers the whole page with same z-index making other background components unclickable/un-interactable, whenever you try to interact with other background components you won't be able to because there is another layer sitting on top of it with z-50 covering whole page, so you will be clicking on that layer instead of background components, making it un-interactable.

If this helps, please mark this as answered, will appreciate, thanks!

Replies: 2 comments 4 replies

Comment options

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

@alphaxek
Comment options

Answer selected by J4v4Scr1pt
Comment options

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

@J4v4Scr1pt
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants