ionic-team / ionic-team/ionic-framework

bug: ion-button-segment with content-id cannot be disabled

Abierto
#30,662 0 comentarios 0 reacciones 0 asignados Ver en GitHub
triage
Lenguaje dominante
TypeScript
Estrellas
52.7k
Forks
13.3k
Merge medio
1 d 15 h
PR fusionados (30 d)
51

Descripción

### Prerequisites

- [x] I have read the [Contributing Guidelines](https://github.com/ionic-team/ionic-framework/blob/main/docs/CONTRIBUTING.md#creating-an-issue).
- [x] I agree to follow the [Code of Conduct](https://ionicframework.com/code-of-conduct).
- [x] I have searched for [existing issues](https://github.com/ionic-team/ionic-framework/issues) that already report this problem, without success.

### Ionic Framework Version

v8.x

### Current Behavior

When setting `[disabled]="true"` on an `ion-segment-button` with `content-id` matching a `ion-segment-content`, the button can still be interacted with.

### Expected Behavior

The disabled button shouldn't be interactable

### Steps to Reproduce

```


First


Second

First
Second

```

### Code Reproduction URL

https://stackblitz.com/edit/bw1epcxh?file=src%2Fapp%2Fexample.component.html

### Ionic Info

```
Ionic:

Ionic CLI : 7.2.1 (/Users/jongbonga/.nvm/versions/node/v20.19.4/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 8.7.3
@angular-devkit/build-angular : 19.2.15
@angular-devkit/schematics : 19.2.14
@angular/cli : 19.2.14
@ionic/angular-toolkit : 12.3.0

Capacitor:

Capacitor CLI : 7.4.3
@capacitor/android : 7.4.3
@capacitor/core : 7.4.3
@capacitor/ios : 7.4.3

Utility:

cordova-res : not installed globally
native-run : 2.0.1

System:

NodeJS : v20.19.4 (/Users/jongbonga/.nvm/versions/node/v20.19.4/bin/node)
npm : 10.8.2
OS : macOS Unknown
```

### Additional Information

_No response_

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Start with the ion-segment-button and ion-segment-content behavior in the Angular reproduction, focusing on how content-id connects a button to its content. Use the provided StackBlitz reproduction to confirm that the disabled second button remains interactive. Done means the disabled button is no longer interactable while the enabled button still works.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
angular, typescript
Área
frontend, web-dev
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
45/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.