tannerkrewson / rocketcrab

party games for phones

Home Page:https://rocketcrab.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chrome thinks name entry is credit card entry?

tannerkrewson opened this issue · comments

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');"/>