bug(material/Form Field Suffix): In Form Field suffix password input field example an extra eye icon is displayed along with the existing masking icon
- 主要语言
- TypeScript
- 星标
- 25k
- 派生
- 6.8k
- 平均合并
- 1 天 8 小时
- 30 天内合并 PR
- 91
描述
### Is this a regression?
- [X] Yes, this behavior used to work in the previous version
### The previous version in which this bug was not present was
_No response_
### Description
This issue is seen in mat form field suffix password control example. When icon is masked and when we start typing in the password, we are seeing an extra eye icon before the masking icon.
Example link: https://material.angular.io/components/form-field/overview#form-field-prefix-suffix
### Reproduction
Steps to reproduce:
1. Go the example https://material.angular.io/components/form-field/overview#form-field-prefix-suffix
2. Try typing the password without unmasking the icon an extra eye icon will be displayed. If not see try clicking outside the input field and type again.
![Uploading FormFieldSuffixPasswordControlexample.PNG…]()
### Expected Behavior
It should not display that extra icon.
### Actual Behavior
When typing in the password with icon masked an extra icon is displayed.

### Environment
- Angular:
- CDK/Material:
- Browser(s):
- Operating System (e.g. Windows, macOS, Ubuntu):
贡献指南
调研方向
打开链接的 Angular Material URL 中的“Form Field prefix/suffix”示例,并在图标被隐藏的情况下复现密码字段在输入时的行为。跟踪示例的 suffix 密码控件,并验证完成后的行为只显示预期的遮罩图标,而不会显示额外的眼睛图标。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- angular, typescript
- 领域
- frontend
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100