Skip to content
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

ScrollArea clicks on clickable element onMouseUp if scrollbar is first dragged #6216

Open
1 of 2 tasks
sindrefl opened this issue May 10, 2024 · 0 comments
Open
1 of 2 tasks

Comments

@sindrefl
Copy link

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?

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant