In some cases, it might happen, that the scroll disabling of the modal causes issues with other functionalities. I ran into this problem a week ago, when I added a google recaptcha into one of my modals.
Proposal
Add a new prop called scrollDisabled for the modal, where the noScroll package can be disabled, if not needed/wanted. To not break any existing functionality, I defaulted this prop to true.
scrollDisabled prop
Background
In some cases, it might happen, that the scroll disabling of the modal causes issues with other functionalities. I ran into this problem a week ago, when I added a google recaptcha into one of my modals.
Proposal
Add a new prop called
scrollDisabled
for the modal, where the noScroll package can be disabled, if not needed/wanted. To not break any existing functionality, I defaulted this prop totrue
.Background
I already wrote an issue on this: https://github.com/davidtheclark/react-aria-modal/issues/46