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] - Select Dropdown Closing and Causing Scroll When Positioned Low in Viewport #3510

Open
CoffeSiberian opened this issue Jul 19, 2024 · 2 comments
Assignees

Comments

@CoffeSiberian
Copy link

NextUI Version

2.4.5

Describe the bug

I have the following issue when trying to open a Select element and the selected item is located far down the user's view. This causes a scroll on the webpage, and the Select does not open. In my case, it doesn't open until it reaches the bottom of the scroll because the Selects are fixed. As seen in the video, it also happens on your website, but since the elements are not fixed, it only happens once.

Your Example Website or App

https://github.com/CoffeSiberian/truck-tools/blob/main/src/components/ProfileMenu/ListProfiles.tsx

Steps to Reproduce the Bug or Issue

  1. Select an item from a dropdown that is located further down the view.
  2. Position the dropdown in a lower part of the viewport.
  3. Try to open the dropdown.
  4. The dropdown will close and cause the webpage to scroll.

(If the dropdown is fixed, it will scroll until it reaches the bottom of the webpage)

Expected behavior

The select should not scroll and open normally if it is at the bottom of the viewport.

Screenshots or Videos

2024-07-18.21-02-05.mp4

Operating System Version

Windows 10

Browser

Edge

@Anubhav-Chauhan3367
Copy link

Hi! Can I work on 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

2 participants