mantine
mantine copied to clipboard
ScrollArea clicks on clickable element onMouseUp if scrollbar is first dragged
trafficstars
Dependencies check up
- [X] I have verified that I use latest version of all @mantine/* packages
What version of @mantine/* packages do you have in package.json?
7.9.1
What package has an issue?
@mantine/core
What framework do you use?
Next.js
In which browsers you can reproduce the issue?
Firefox
Describe the bug
Visible in the documentation on the ScrollArea.Autosize example - https://mantine.dev/core/scroll-area/#scrollareaautosize
If the scrollbar is clicked and dragged, and then the mouse is moved to hover the Remove paragraph/Add paragraph buttons without releasing, then the button event fires as the mouseclick is released.
This bug makes it very inconvenient to have a ScrollArea with a list of links in it, as it is easy to trigger the links onMouseUp without intending to do so.
If possible, include a link to a codesandbox with a minimal reproduction
No response
Possible fix
No response
Self-service
- [ ] I would be willing to implement a fix for this issue