ScrollArea clicks on clickable element onMouseUp if scrollbar is first dragged #6216
Open
1 of 2 tasks
Labels
help wanted
Contributions from community are welcome
Dependencies check up
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
The text was updated successfully, but these errors were encountered: