Skip to content

The Menu component is not being propagated the touch event to the parent, so the Menu does not close automatically as expected. #2986

@CristFlores

Description

@CristFlores

What package within Headless UI are you using?
Response: @headlessui/react

What version of that package are you using?
Response: v1.7.18

What browser are you using?
For example: Chrome, Brave

Reproduction URL
Response: https://github.com/CristFlores/headless-ui-issue/tree/main

Describe your issue
Response:
* IMPORTANT: To reproduce the issue, use the touch event, not the click event.
* The Menu component does not close automatically when touching the child of some other button, i.e., the touch event is not being propagated to the parent and therefore the Menu component does not close unless the parent is touched directly, which it is not the expected behavior.
* FYI: For the case where the child of the "other" button is plain text, the Menu component does close automatically when the child of the "other" button is touched.

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