mezzanine icon indicating copy to clipboard operation
mezzanine copied to clipboard

<input> autocomplete="off" not working on Chrome

Open travor20814 opened this issue 2 years ago • 1 comments

Describe the bug

Chromium bug which described in https://bugs.chromium.org/p/chromium/issues/detail?id=370363#c7

Steps To Reproduce

Steps to reproduce the behavior:

  1. Set autocomplete="off" and type="email" on input tag
  2. open Chrome and still see autocomplete list

Expected behavior

Not showing any autocomplete list

Solutions

Some workarounds here

<input type="password" readonly onfocus="this.removeAttribute('readonly');"/> 

travor20814 avatar Apr 25 '22 09:04 travor20814

這個解法會讓手機版的 input 沒辦法跳出鍵盤,解法有待討論

travor20814 avatar Jul 29 '22 07:07 travor20814