0

The password field in the login form shows a list of password already saved when the password field is focused.

I tried putting autocomplete="off" and readonly onfocus="this.removeAttribute('readonly')", though it worked for username field, it din't work for password field.

The previously stored password shouldn't be visible when the password field is focused.

Ramya
  • 161
  • 1
  • 2
  • 11
  • Can you post some example? [This](https://stackoverflow.com/questions/17719174/autocomplete-off-is-not-working-when-the-input-type-is-password-and-make-the) seems to be working and it looks like you've done. – Tico Apr 08 '19 at 07:22
  • Here is the code that I used: – Ramya Apr 08 '19 at 08:44
  • Try adding `autocomplete="off"` in the `form` [Looks like it is a bug](https://github.com/angular/material/issues/1849) and the [workaround](https://stackoverflow.com/questions/38589342/prevent-autofill-the-saved-password-in-angular-material-design) – Tico Apr 08 '19 at 08:49
  • adding autocomplete="off" din't work – Ramya Apr 08 '19 at 09:32

0 Answers0