zdfs / toscani

This is a jQuery-based, progressively-enhanced solution for creating a single-field credit card input. The idea is to create a more streamlined credit card entry process.
872 stars 102 forks source link

Backspace on MM/YY #35

Open kmwboise opened 9 years ago

kmwboise commented 9 years ago

I'm finding an issue with backspacing to be a problem when you go all the way back the credit card field. Once you backspace it either won't let you or it will let you but you can't type in any numbers. Especially past the MM/YY.

pmarrapese commented 9 years ago

Hey kmwboise,

I ran into this same issue. It has something to do with unbinding the 'keydown' event on the expiration field (https://github.com/zdfs/toscani/blob/master/paymentInfo/assets/scripts/app.js#L234) -- the CVV field gets this unbound too, but does not seem to exhibit the same problem.