Button toggle group acts wrong if value is null
- 主要言語
- TypeScript
- スター
- 25k
- フォーク
- 6.8k
- 平均マージ
- 1日 8時間
- マージ済み PR(30日)
- 91
説明
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+
コントリビューションガイド
調査の方向性
まず、グループの値が null で、null 値のボタンが最初にクリックされる、提供された mat-button-toggle-group の例で問題を再現します。Angular Material button toggle の実装とテストを調査します。null 値のボタンが最初のクリックで選択可能になり、true または false の選択を壊さなければ完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- angular, typescript
- 領域
- frontend
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100