Device-Bugs icon indicating copy to clipboard operation
Device-Bugs copied to clipboard

Safari 6 (Mac OS X and iOS) truncate leading zeros on input type="number"

Open zachleat opened this issue 9 years ago • 1 comments
trafficstars

Type the valid US Zip Code "02111" into an <input type="number"> field and it will truncate the leading zero.

Workaround: use type="text".

zachleat avatar Jul 07 '16 17:07 zachleat

This is the same as #71: Safari 6 keeps the double version of the input, not the original string (which is not to say it's a duplicate, it's a different symptom)

Programmerman1 avatar Jul 07 '16 18:07 Programmerman1