Button toggle group acts wrong if value is null
- Lenguaje dominante
- TypeScript
- Estrellas
- 25k
- Forks
- 6.8k
- Merge medio
- 1 d 8 h
- PR fusionados (30 d)
- 91
Descripción
Bug: If a button in a button group has a value of null, it is not selected on the first button click
#### What is the expected behavior?
buttuns with a value of null should be selectable
#### What is the current behavior?
buttons are only sometimes selectable
#### What are the steps to reproduce?
```
assignment_turned_in booked
find_in_page not booked
description all
```
#### What is the use-case or motivation for changing an existing behavior?
Java has `Boolean` values that can eigther be null, true or false. I use this value to map it to a java object.
#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
definitely angular material 7+
Guía de contribución
Línea de trabajo
Empieza reproduciendo el problema con el ejemplo proporcionado de mat-button-toggle-group, en el que el valor del grupo es null y el botón con valor null se pulsa primero. Inspecciona la implementación y las pruebas de Angular Material button toggle; se considera terminado cuando un botón con valor null puede seleccionarse con el primer clic sin romper la selección de true o false.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- angular, typescript
- Área
- frontend
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100