MatStepper treats steps as `interacted` if you immediately return to a previous step
- 主要语言
- TypeScript
- 星标
- 25k
- 派生
- 6.8k
- 平均合并
- 1 天 8 小时
- 30 天内合并 PR
- 91
描述
#### Bug, feature request, or proposal:
Bug
#### What is the expected behavior?
Angular-material forms should be presented in a non-error state when the conditions of the default ErrorStateMatcher are not met (not touched or not submitted)
#### What is the current behavior?
When a form is presented inside a mat-stepper, when traversing to a previous step, the form will be in an error state even if the form is pristine and un-submitted. Any attempt to try to reset the form or FormGroupDirective fails.
#### What are the steps to reproduce?
https://stackblitz.com/edit/angular-material2-issue-fay224
#### What is the use-case or motivation for changing an existing behavior?
#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
#### Is there anything else we should know?
贡献指南
调研方向
从链接的 StackBlitz 复现开始,跟踪返回上一步时 MatStepper 与表单及默认 ErrorStateMatcher 的交互。完成标准是:未修改且未提交的表单在重新访问某一步时仍保持非错误状态,并且重置表单或 FormGroupDirective 能按预期工作。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- angular, typescript
- 领域
- frontend
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100