nextui-org / nextui

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

[BUG] - dropdown opens and immediately closes for me #4070

Open IvanHoliak opened 3 days ago

IvanHoliak commented 3 days ago

NextUI Version

2.4.8

Describe the bug

Deployed to production on Vercel and when I click on dropdown it opens and immediately closes! This did not happen during local development and everything worked great!

PS In the local environment everything works fine

yarn 4.5.1 node 20.15.1 vite 5.2.0 react 18.3.1

Your Example Website or App

No response

Steps to Reproduce the Bug or Issue

  1. Deployed to Vercel
  2. Click on dropdown

Expected behavior

It should open and not close until I close it.

Screenshots or Videos

https://github.com/user-attachments/assets/fa32648c-0f81-4711-8371-d11c2856e870

Operating System Version

macOS

Browser

Chrome

linear[bot] commented 3 days ago

ENG-1561 [BUG] - dropdown opens and immediately closes for me

IvanHoliak commented 3 days ago

I created a clean project for testing from scratch and added the default Dropdown component and deployed it to Vercel The problem remains!

https://github.com/user-attachments/assets/a8efd727-12f5-48c7-a436-921f18235bac

site - https://test-nestui-dropdown.vercel.app/

code - https://github.com/IvanHoliak/test-nestui-dropdown

teplostanski commented 3 days ago

I'm having the same problem with the Drawer on my mobile device in Chrome; I have to hold down the button to open it.

https://github.com/user-attachments/assets/acb45c86-ac07-4fec-be5e-9e3f6e8cd87e

SaiSawant1 commented 2 days ago

hey @IvanHoliak , I am not able to produce this in local environment

EDIT: the bug only occurs in production.

IvanHoliak commented 2 days ago

hi @SaiSawant1 , Yes, I forgot to indicate in the description that everything works fine locally changed the description