angular / angular/components

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

Open
#26,321 5 comments 1 reaction 0 assignees View on GitHub
P3
Dominant language
TypeScript
Stars
25k
Forks
6.8k
Avg merge
1d 8h
Merged PRs (30d)
91

Description

### 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.

![image](https://user-images.githubusercontent.com/98823520/209349656-0b0599c8-74dc-465c-b203-82a7b860060f.png)

### Environment

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

Contributor guide

Open the contributing guide

Research direction

Open the Form Field prefix/suffix example at the linked Angular Material URL and reproduce the password-field behavior while typing with the icon masked. Trace the example's suffix password control and verify that the completed behavior shows only the intended masking icon, without an extra eye icon.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.