kenkeiter / skeuocard

Skeuocard progressively enhances credit card inputs to provide a skeuomorphic interface.
http://kenkeiter.com/skeuocard/
MIT License
3.23k stars 231 forks source link

CVC bug in AMEX #150

Open ghost opened 9 years ago

ghost commented 9 years ago

If a user starts to fill out a Visa, then switches to AMEX, the CVC field only allows 3 digits.

estenp commented 9 years ago

Currently struggling with this bug. It appears to be Firefox related -- it seems to work in Chrome.

I found some Firefox issues that seem to indicate this issue, however they are rather old and I've yet to find any sort of solution: https://bugzilla.mozilla.org/show_bug.cgi?id=743169

Perhaps a regex pattern can be (re)applied to the field as the card type changes, rather than relying on the maxlength value?