Skip to content

bug: ion-checkbox is toggled by ion-item click #20521

@bsbechtel

Description

@bsbechtel

Bug Report

Ionic version:

[x] 4.x

Current behavior:

If you have the following markup, any click or tap on the ion-item will toggle the ion-checkbox:

    <ion-item>
      <ion-checkbox slot="start"></ion-checkbox>
      <div>Testing!</div>
    </ion-item>

Expected behavior:

The ion-checkbox should only toggle when it is clicked, or the click event from the ion-item should be cancellable.

Steps to reproduce:

Related code:

Codepen

Other information:

This issue has been brought up multiple times and not fixed: 19590 15850 17832

Ionic info:

insert the output from ionic info here

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions