eBay / nice-modal-react

A modal state manager for React.
https://ebay.github.io/nice-modal-react
MIT License
1.96k stars 109 forks source link

Disable body scroll lock and react portal #123

Closed jakec-dev closed 9 months ago

jakec-dev commented 11 months ago

Hi, this package works fantastically for modals however I can't figure out how to disable the body scroll lock and react portal usage so that I can use this for dialogs? i.e. be able to anchor the modal to another component while not having the modal blocking the user from interacting with the rest of the page while it's open. Think something like a notification dialog, or a tool tip.

Is this possible? I've looked at the docs and searched for past issues and it doesn't seem like this has been addressed anywhere.

supnate commented 11 months ago

Scroll lock is out of the scope of this lib, it's usually handled by the modals implementation.