kenkeiter / skeuocard

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

No flip button when pasting credit card number #131

Open hrdwdmrbl opened 10 years ago

hrdwdmrbl commented 10 years ago

Whenever I paste a credit card number, I am never able to flip the card over. The only work around is to go back to the card number, delete any character, and then enter the character again. After pressing a key, I am then able to turn the card over to the other side to be able to fill in the CVC.

I think you are listening for a keypress, keyup or keydown. I think you need to add a listener for the 'paste' event.

hrdwdmrbl commented 10 years ago

I would give you a pull request, but I'm on a foreign machine right now. I think I've identified the code in question. Take a look at line 239 this._inputViews.number.bind("change valueChanged", function(e, input) {

I think you should add 'paste' to that bind command.

Awesome work on this project, BTW! I love it and use it.