nextui-org / nextui

🚀 Beautiful, fast and modern React UI library.
https://nextui.org
MIT License
21.56k stars 1.41k forks source link

[BUG] - Dropdown click in navbar causes page to scroll up slightly #3804

Open ahmedsamirdev opened 3 days ago

ahmedsamirdev commented 3 days ago

NextUI Version

2.4.8

Describe the bug

When clicking on the dropdown menu in the navbar, the website scrolls slightly upwards. This behavior occurs every time I click on the dropdown. It consistently scrolls once towards the top of the page.

Your Example Website or App

https://nextui.org/docs/components/select

Steps to Reproduce the Bug or Issue

  1. Navigate to the page with the navbar.
  2. Click on the dropdown menu in the navbar.
  3. Observe that the page scrolls up slightly.

Expected behavior

The dropdown menu should open without causing the page to scroll.

Screenshots or Videos

https://github.com/user-attachments/assets/6c7d31bf-0d99-4b14-8313-c31b762d19dc

Operating System Version

Deployed website

Browser

Opera

linear[bot] commented 3 days ago

ENG-1398 [BUG] - Dropdown click in navbar causes page to scroll up slightly

pranav-iitr commented 2 days ago

Hi, I would like to work on this issue

wingkwong commented 2 days ago

@pranav-iitr go ahead