nuxt / ui

A UI Library for Modern Web Apps, powered by Vue & Tailwind CSS.
https://ui.nuxt.com
MIT License
4.08k stars 529 forks source link

"UDropdown": Toggle NOT Working in Mobile. click event & touchstart event neutralize each other. #2261

Closed DanielQolami closed 1 month ago

DanielQolami commented 1 month ago

Environment

Version

v2.18.6

Reproduction

https://ui.nuxt.com/components/dropdown

image

Description

clicking on the dropdown button doesn't work in mobile view. the "click" event & the "touchstart" event, call the same function (toggle dropdown visibility), and neutralize each other. (basically, click event opens the dropdown, the touchstart event, closes the dropdown)

I tested it and in both android 14 & in windows, firefox (mobile view mode), I got the same result.

Additional context

Screenshot 2024-09-26 144458

Logs

No response

DanielQolami commented 1 month ago

same Issue happens with Popover https://ui.nuxt.com/components/popover