rocketcrab icon indicating copy to clipboard operation
rocketcrab copied to clipboard

Chrome thinks name entry is credit card entry?

Open tannerkrewson opened this issue 5 years ago • 1 comments

tannerkrewson avatar Jan 03 '21 14:01 tannerkrewson

Was encountering this same issue. Dug into it a bit and looks like the name entry input is marked with autocomplete="off". Chrome is notoriously bad at allowing developers to turn off autocomplete and basically ignores the tag unless it's marked on the <form /> level (and also fewer than 3 elements in the form?).

As per the link above it seems autocomplete="chrome-off" is working on some chrome versions but I couldn't reproduce it on chrome 89. The easiest fix that would work across all versions seems to be:

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

arlen-yu avatar Apr 10 '21 15:04 arlen-yu