New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modal overlay is rendered above the scroll #2371
Comments
@italodeandra feel free to send a PR with a fix |
Help is still wanted on this, if someone wants to submit a PR feel free to ping me here. |
@rtivital I think I have a fix, please review PR. |
Issue is not fixed, #2445 is not a valid solution as click outside events do not work |
My bad, didn't notice that issue. I'm kind of at a loss, any ideas? The only thing I can think of right now is to change the inset of the overlay so that it does not cover the scrollbar to the right, but this would need to be mirrored in RTL situations and it would also need to not do this on mobile resolutions. As far as I know there's no way to give position: absolute to the scrollbar to make it have priority, and I'm not sure if putting a transform on it to move it up would be a good idea. Maybe something that I don't know? |
What package has an issue
@mantine/modals
Describe the bug
You can scroll normally using the mouse scroll, but if you try clicking the scroll bar you actually click the overlay triggering the modal to close.
If possible, please include a link to a codesandbox with the reproduced problem
https://mantine.dev/others/modals/
Do you know how to fix the issue
Yes
Are you willing to participate in fixing this issue and create a pull request with the fix
Yes
The text was updated successfully, but these errors were encountered: