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

オープン
#26,321 コメント 5 件 リアクション 1 件 担当者 0 名 GitHub で見る
P3
主要言語
TypeScript
スター
25k
フォーク
6.8k
平均マージ
1日 8時間
マージ済み PR(30日)
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.

![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):

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

リンク先の Angular Material URL で「Form Field prefix/suffix」の例を開き、アイコンをマスクした状態で入力中のパスワードフィールドの動作を再現します。例の suffix パスワードコントロールを追跡し、完了した動作で意図したマスキングアイコンだけが表示され、余分な目のアイコンが表示されないことを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
angular, typescript
領域
frontend
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。