Skip to content

[bug]: Select component reopens on second tap instead of closing (touch devices) #8813

@GravityTwoG

Description

@GravityTwoG

Describe the bug

On touch devices, when the Select component's options list is open, a second tap on the trigger component reopens the list instead of closing it. I think the expected behavior is for the second tap on the trigger to close the options list.

Link to component preview:
https://ui.shadcn.com/docs/components/select

Video with the problem:

Screen-Now-20251115T172403.mp4

Affected component/components

Select

How to reproduce

  1. Open Select component preview in mobile browser or using mobile mode in chrome-based browser devtools.
  2. Tap on trigger to open options list.
  3. Tap on different point inside trigger component. (If you'll tap on the same point, then options will close as expected)

Codesandbox/StackBlitz link

The reproduction is on the shadcn's website https://ui.shadcn.com/docs/components/select

Logs

System Info

Reproduced in Chrome browser on android, devtools in mobile mode in Arc browser.

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions