Skip to content

Popup closes on touch devices. #3473

@IvanKalinin

Description

@IvanKalinin

Description

For some reason, I cannot reopen the issue I created earlier. #3471
So I open a new one.

The bug occurs not only in Playwright but also on touch devices.

Link to Reproduction (or Detailed Explanation)

https://codesandbox.io/p/devbox/tj7g8p

Steps to Reproduce

  1. Open the link on a touch device (e.g., tablet)
  2. Open Popover
  3. Open the Select Menu
  4. Click on a select menu item
  5. See the click on the select menu item closes the popup.

Ark UI Version

5.9.1

Framework

  • React
  • Solid
  • Vue

Browser

No response

Additional Information

I also noticed in zag-js in interact-outside implemented a custom logic for touch events.

https://github.com/chakra-ui/zag/blob/main/packages/utilities/interact-outside/src/index.ts#L176-L185

Calling handler() rather than the custom logic fixes the issue on touch devices (but not in Playwright).

Saying that the issue is not just in the Portal within a Portal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions