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 with scrollBehavior="inside" presents double scroll bar #3492

Closed
MonicaPArroyo opened this issue Jul 17, 2024 · 1 comment · Fixed by #3495
Closed

[BUG] - Modal with scrollBehavior="inside" presents double scroll bar #3492

MonicaPArroyo opened this issue Jul 17, 2024 · 1 comment · Fixed by #3495

Comments

@MonicaPArroyo
Copy link

NextUI Version

2.4.2

Describe the bug

When setting the scrollBehavior property to "inside" for a modal, two scrollbars appear instead of just one for the content inside the modal. This behavior is unexpected and affects the user experience by cluttering the interface with redundant scrollbars.

Your Example Website or App

No response

Steps to Reproduce the Bug or Issue

  1. Create a modal component in a NextUI project.
  2. Set the scrollBehavior property of the modal to "inside".
  3. Populate the modal with enough content to require scrolling.
  4. Observe that two scrollbars are present: one for the entire modal and one for the content inside the modal.

Expected behavior

Only one scrollbar should appear, specifically the one for the content inside the modal

Screenshots or Videos

image

Operating System Version

Windows 11

Browser

Chrome

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

Successfully merging a pull request may close this issue.

1 participant