Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug(form-field): hide/show button of password input is not working in the example in the doc #29356

Open
1 task done
EpicDeveloper0928 opened this issue Jul 1, 2024 · 1 comment
Labels
area: material/form-field docs This issue is related to documentation good first issue This issue is a good place to start for first time contributors to the project P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Comments

@EpicDeveloper0928
Copy link

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

17

Description

In the example of Form field with prefix & suffix, the hide/show button inside password input field is not working.

Reproduction

The example includes StackBlitz link.

Expected Behavior

It should hide/show password of the input field whenever click the button.

Actual Behavior

By default, password is hidden. And I can see password by first click.
Next time, button clicking is not working, and it doesn't hide password in the input field.

Environment

  • Angular: 18.0.5
  • CDK/Material: 18.0.5
  • Browser(s): Chrome 126.0.6478.127
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows
@EpicDeveloper0928 EpicDeveloper0928 added the needs triage This issue needs to be triaged by the team label Jul 1, 2024
@Siddhu-K
Copy link

Siddhu-K commented Jul 1, 2024

this.hide.set(!this.hide) should be this.hide.set(!this.hide())

@crisbeto crisbeto added P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent docs This issue is related to documentation good first issue This issue is a good place to start for first time contributors to the project area: material/form-field and removed needs triage This issue needs to be triaged by the team labels Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: material/form-field docs This issue is related to documentation good first issue This issue is a good place to start for first time contributors to the project P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Projects
None yet
Development

No branches or pull requests

3 participants