Skip to content

Closing DropdownMenu by clicking outside highlights first item on a touch device #575

@dannylin108

Description

@dannylin108

Describe the bug
If on a touch device (chrome emulation also works) close DropdownMenu by clicking outside, first item gets highlighted.

See official example from docs:

https://kobalte.dev/docs/core/components/dropdown-menu

To Reproduce
Steps to reproduce the behavior:

  1. Open official example on a touch device
  2. Click on the trigger 'Git settings'
  3. Click outside to close the Dropdown
  4. While menu content is fading out, you can clearly see that first item ("Commit") got highlighted.

Expected behavior
It should not get highlighted, as it works on a desktop.

Desktop (please complete the following information):

  • OS: Linux
  • Browser: Brave (mobile emulation), Chromium (mobile emulation)

Smartphone (please complete the following information):

  • Device: Samsung
  • OS: Android
  • Browser Brave Mobile

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions