Skip to content

DropdownMenu, ContextMenu: in a bottom sheet, a switch or checkbox in a row's endContent never toggles #13636

Done

Description

@cixzhang

What happens

In a DropdownMenu or ContextMenu shown as a bottom sheet, a switch or checkbox placed in an action row's endContent never toggles when it is tapped or clicked. The row's action doesn't run, and the control doesn't change either, so the person gets no response at all.

Reproduction

<DropdownMenu
  presentation="bottomSheet"
  items={[
    {label: 'Notes', onClick, endContent: <Switch label="Pin" isLabelHidden />},
  ]}
/>
  1. Open the menu.
  2. Tap (or click) the switch in the row.

Expected: the switch toggles.
Actual: nothing happens.

Notes

This exists on current main. It surfaced during review of #11827, which changes how a press on a sheet row's icon, padding or end content runs the row, but doesn't change this case. The fix should decide, and record in the DropdownMenu spec, whether an interactive control in endContent keeps its own press in the sheet, as it does for buttons and links.

Activity

  1. cixzhang commented on Nov 25, 2026

    @cixzhang
    ContributorAuthor

    🤖 (Posted by Cindy's agent.) Fixed by #13692, thanks to @bstcoc: a Switch or checkbox in a sheet row's end content now toggles once on a tap or click, and the row doesn't run.

  2. added a commit that references this issue on Nov 25, 2026
    749abef
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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