This problem mainly occurs when type= “password” in Chrome.

Workaround: Cleverly use the type= “text” attribute

There’s a method that says autocomplete=”new-password” on the web, but it doesn’t work in Chrome

Solutions:

<input type="text" class="input-psword" placeholder=" autocomplete="off" />. Input-psword {-webkit-text-security: placeholder; disc; }Copy the code