-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Open
Labels
help wantedContributions from community are welcomeContributions from community are welcome
Description
Dependencies check up
- I have verified that I use latest version of all @mantine/* packages
What version of @mantine/* packages do you have in package.json?
"@mantine/core": "^8.1.2", "@mantine/hooks": "^8.1.2", "@mantine/modals": "^8.1.2",
What package has an issue?
@mantine/modals
What framework do you use?
React Router
In which browsers you can reproduce the issue?
All
Describe the bug
I have a component that creates a horizontal scroll. There are no problems outside the modal window. The following scenarios caused problems inside the modal window:
- Hold down Shift and scroll with the wheel - It is expected that scrolling will be left or right.
- If there is no vertical scrollbar, then there are no horizontal scroll movements at all.
- If the vertical scroll is scrolled to 0%, then the horizontal does not move to the left, but moves to the right.
- If the vertical scroll is scrolled to 100%, then the horizontal one does not move to the right, but it moves to the left.
- If the vertical scroll is scrolled by 1-99%, then there are no problems with the horizontal scroll.
modals.open({
id: item.id,
title: (
<Title component='p' order={4}>
{item.name}
</Title>
),
size: '100%',
centered: true,
overlayProps: { blur: 3 },
children: <CustomComponent {...{ ...record, columns }} />
})
Please note that the horizontal scroll can be located outside the component or inside the component, the result is always the same.
If possible, include a link to a codesandbox with a minimal reproduction
No response
Possible fix
I don't know how to solve this, I tried to hack it by handling onWhell, disabled scroll styles. All this did not give results. Perhaps there is some error in the scroll bar handler. It is unlikely that I will be able to solve this problem.
Self-service
- I would be willing to implement a fix for this issue
Metadata
Metadata
Assignees
Labels
help wantedContributions from community are welcomeContributions from community are welcome