angular / angular/components

bug(COMPONENT): MatDatePicker

未关闭
#33,740 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
area: material/datepicker gemini-triaged needs triage
主要语言
TypeScript
星标
25k
派生
6.8k
平均合并
1 天 8 小时
30 天内合并 PR
91

描述

### Is this a regression?

- [ ] Yes, this behavior used to work in the previous version

### The previous version in which this bug was not present was

_No response_

### Description

MatDatePicker with Signal Forms keeps on showin matDatepickerParse error if delete with keyboard a valid date un char at the time.

### Reproduction

StackBlitz link:
Steps to reproduce:
1.
2.

### Expected Behavior

Bind the control to a value.
Select or enter a valid date.
Erase the just entered date.
The forms has invalid()==false

### Actual Behavior

Bind the control to a value.
Select or enter a valid date.
Erase the just entered date.
The forms has invalid()==true

### Environment

- Angular: 22
- CDK/Material: 22
- Browser(s):
- Operating System (e.g. Windows, macOS, Ubuntu):

贡献指南

打开贡献指南

调研方向

未提供源文件、测试或复现链接。首先使用 Angular Signal Forms 复现 MatDatePicker 的行为:绑定一个 control,输入一个有效日期,然后逐个字符擦除。完成标准是:清除日期后,表单的无效状态为 false,且没有 matDatepickerParse 错误。

由索引模型根据 Issue 内容生成。

评估

技术栈
angular, typescript
领域
frontend
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
活跃
描述清晰度
需要澄清
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。