React-modal: How to disable overlay

Created on 21 Sep 2018  路  6Comments  路  Source: reactjs/react-modal

I'd like to show a modal on top of other content but don't want that the overlay because then the other content won't remain interactable. Can we do this?

question styling

All 6 comments

Hi @itaditya, You can do with some css. Basically you can set the size of the overlay to be the same as the content.

Oh ok got it. Thanks

@itaditya Let me know if that idea worked. Thanks.

Yes it worked @diasbruno :tada:

Good to hear that. :+1:

Can we do something like this overlay: { position: static }. This works for me since the overlay does not have any width and height.

Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

davidmfoley picture davidmfoley  路  3Comments

c0debreaker picture c0debreaker  路  4Comments

phaedryx picture phaedryx  路  4Comments

jrock17 picture jrock17  路  4Comments

istok20 picture istok20  路  3Comments