I have been working on creating a Bootstrap modal that allows the user to interact with the rest of the website while it is visible. The steps I have taken so far include:
- Adding
data-backdrop="false"
to the modal div in order to hide the shadow of the backdrop - Including
keyboard: false
to prevent users from closing the modal by pressing ESC on the keyboard Implementing a custom CSS class to position the dialog in the bottom right corner:
.modalDialog { position: fixed; bottom: 20px; right: 20px; margin: 0px; }
These changes make the modal non-blocking, but there are still issues with the page not being scrollable and elements not being clickable. I have tried various solutions on StackOverflow, but they seem to be outdated as they were for earlier versions of Bootstrap.
So, my question is whether there is a supported way to achieve this functionality in Bootstrap 4, or if one must resort to using custom CSS classes?