bug(MatFormField): Rendering MatChips within a MatChipGrid using NgTemplateOutlet breaks the floating label.
- 主要言語
- TypeScript
- スター
- 25k
- フォーク
- 6.8k
- 平均マージ
- 1日 8時間
- マージ済み PR(30日)
- 91
説明
### Description
Rendering MatChips within a MatChipGrid using NgTemplateOutlet breaks the floating label.
### Reproduction
StackBlitz link:
https://stackblitz.com/edit/itsykq?file=src%2Fexample%2Fchips-form-control-example.ts
### Expected Behavior
I expected the rendered chip template to work as normal chip.
### Actual Behavior
What happens is that when we click away from the input field, the float label floats down, making the label obstructed by the chips added.
### Environment
- Angular: 17.1
- CDK/Material: 17.1
- Browser(s): Chrome
- Operating System: macOS
コントリビューションガイド
調査の方向性
まず、リンクされた StackBlitz の再現を実行し、そこで説明されている MatFormField、MatChipGrid、NgTemplateOutlet の相互作用を調査します。入力フィールドの外側をクリックする前後で、フローティングラベルの動作を比較します。レンダリングされたチップが正常に動作し、ラベルが遮られることなく正しくフロートしたままになれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- angular, typescript
- 領域
- frontend
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 38/100