Button toggle group acts wrong if value is null
- Lingua principale
- TypeScript
- Stelle
- 25k
- Fork
- 6.8k
- Merge medio
- 1g 8h
- PR unite (30g)
- 91
Descrizione
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+
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia riproducendo il problema con l’esempio fornito di mat-button-toggle-group, in cui il valore del gruppo è null e il pulsante con valore null viene selezionato per primo. Esamina l’implementazione e i test di Angular Material button toggle; il lavoro è completato quando un pulsante con valore null può essere selezionato al primo clic senza compromettere la selezione di true o false.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- angular, typescript
- Ambito
- frontend
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100