tree.treeControl.expandAll() has an error
- 主要言語
- TypeScript
- スター
- 25k
- フォーク
- 6.8k
- 平均マージ
- 1日 8時間
- マージ済み PR(30日)
- 91
説明
#### Bug
Dear team!
I has an error when I want to expand all node of Mat nested tree
```
ERROR TypeError: Cannot read property 'reduce' of undefined
at NestedTreeControl.push../node_modules/@angular/cdk/esm5/tree.es5.js.NestedTreeControl.expandAll (tree.es5.js:287)
at Object.eval [as handleEvent] (FilterViewComponent.html:18)
at handleEvent (core.js:10050)
at callWithDebugContext (core.js:11143)
at Object.debugHandleEvent [as handleEvent] (core.js:10846)
at dispatchEvent (core.js:7509)
at core.js:7953
at HTMLButtonElement. (platform-browser.js:1140)
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:421)
at Object.onInvokeTask (core.js:3748)
```
#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 6.1.0
Material 6.4.1
コントリビューションガイド
調査の方向性
FilterViewComponent.html に示されている呼び出しを使い、まず Angular 6.1.0 と Material 6.4.1 で NestedTreeControl.expandAll の失敗を再現します。報告された tree.es5.js の位置周辺にあるネストされたツリーの実装を調査し、なぜ reduce が undefined を受け取るのかを特定します。expandAll がエラーなしですべてのネストされたノードを展開し、回帰テストによるカバレッジがある状態を完了とします。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- angular, typescript
- 領域
- frontend
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 35/100