bug(MatDatePicker): change events emitted despite using emitEvents false
- 主要言語
- TypeScript
- スター
- 25k
- フォーク
- 6.8k
- 平均マージ
- 1日 8時間
- マージ済み PR(30日)
- 91
説明
#### Reproduction
https://stackblitz.com/edit/components-issue-xay9ty?file=src%2Fapp%2Fexample-component.ts
1. Click the "emitEvent: false" button
#### Expected Behavior
`valueChanges` should not emit values when setting a value with `emitEvent: false`
This works correctly for "normal" input components, but not when attaching a date picker.
The reproduction includes a text input and a select for comparison.
#### Actual Behavior
Using `setValue` or `patchValue` with `emitEvent` set to `false` has the `valueChanges` observable emit changes.
#### Environment
- Angular: 10.0.3
- CDK/Material: 10.0.3
- Browser: Chrome
- Operating System: Windows
コントリビューションガイド
調査の方向性
リンクされた StackBlitz の再現を開き、src/app/example-component.ts を調べます。"emitEvent: false" ボタンをクリックし、date-picker の動作をテキスト入力および select と比較して、valueChanges の発火を追跡します。setValue と patchValue に emitEvent: false を指定したときに、date-picker で valueChanges の発火が発生しなければ完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- angular, typescript
- 領域
- frontend
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100