radix-ui / themes

Radix Themes is an open-source component library optimized for fast development, easy maintenance, and accessibility. Maintained by @workos.
https://radix-ui.com/themes
MIT License
5.76k stars 208 forks source link

[Select] Select is being opened when I swipe up (mobile) #454

Open llezhava opened 7 months ago

llezhava commented 7 months ago

Hello everyone!

On mobile, when I swipe up, Select is opened if I click on the component before starting swiping. In this case, it must not open, because during swiping it shall not matter where I start because I want to start scrolling.

I checked on the Material UI select component, and they don't open select in such situations. Native select also does not open.

Steps to reproduce:

Browser needed: Mobile, Chrome

  1. Go to https://www.radix-ui.com/themes/docs/components/select documentation
  2. Click on the select & start swiping up
  3. Select will open
llezhava commented 7 months ago

Also, is it possible to close the dropdown, when the user swipes back on mobile? Native Select has this option, but It will be very tricky to implement (even if it's possible)

llezhava commented 7 months ago

Right now, I'm considering to create a native select (style it like radix-ui select), and render it on mobile.

mmagsano commented 4 months ago

+1