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

[BUG] - Modal closes after dragging scrollbar with scrollBehaviour outside #4932

Open
ohIcee opened this issue Feb 25, 2025 · 2 comments
Open

Comments

@ohIcee
Copy link

ohIcee commented Feb 25, 2025

HeroUI Version

2.7.2

Describe the bug

When opening a modal with scrollBehavior set to "outside" and the modal having enough content to scroll, it closes when letting go of the scrollbar.

Your Example Website or App

https://stackblitz.com/edit/sb1-jgqckyq8?file=src%2FApp.tsx

Steps to Reproduce the Bug or Issue

  1. Open modal with scrollBehavior set to outside
  2. Try scrolling by dragging the scrollbar with mouse
  3. After releasing mouse, the modal will close

Expected behavior

As a user, I expect to be able to scroll the modal by dragging the scrollbar and it not closing after releasing mouse click.

Screenshots or Videos

Screen.Recording.2025-02-25.at.10.25.30.mov

Operating System Version

MacOS 15.2

Browser

Chrome

Copy link

linear bot commented Feb 25, 2025

@galjeza
Copy link

galjeza commented Feb 26, 2025

We are having the same issue , hope this gets resolved

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

2 participants