ionic-team / ionic-team/ionic-framework

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

Abierto
#20,521 3 comentarios 3 reacciones 0 asignados Ver en GitHub
package: core type: bug
Lenguaje dominante
TypeScript
Estrellas
52.7k
Forks
13.3k
Merge medio
1 d 15 h
PR fusionados (30 d)
51

Descripción

# 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:

```


Testing!


```

**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](https://codepen.io/bsbechtel/pen/YzXWKOW?editors=1100)

**Other information:**

This issue has been brought up multiple times and not fixed: [19590](https://github.com/ionic-team/ionic/issues/19590) [15850](https://github.com/ionic-team/ionic/issues/15850) [17832](https://github.com/ionic-team/ionic/issues/17832)

**Ionic info:**

```
insert the output from ionic info here
```

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.