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

Dynamically updating field causes error #148

Closed hellopablo closed 5 years ago

hellopablo commented 9 years ago

Hi,

I've noticed some issues with dynamically setting values.

I collect the name elsewhere in my form, so want to populate the card field after they've done that. Doing this:

$( '#name' ).on( 'blur', function()
{
    $('[name="cc_name"]').val( $(this).val() ).trigger('change');
});

Results in the following error:

TypeError: currentDate.getMonth is not a function     skeuocard.min.js:1123

I've done a little debugging, and can see that it thinks currentDate is the value of my form field. Am I missing something?

Pablo.

ghost commented 9 years ago

I get the same problem.

I don't think the author is paying attention to this repo anymore. Maybe it's time someone forked it and took over.

kenkeiter commented 9 years ago

Sorry folks -- I haven't had time to maintain it with my current workload.

There are a lot of things I'd really like to fix about Skeuocard; especially the way changes in state are dealt with -- probably one of the things that's causing the bug you're seeing right now. At some point, I'll probably get around to rebuilding it. In the meantime, if you're interested in forking and (possibly) pushing good things back upstream, that's always appreciated.

I apologize that I don't have more time to work on this. I'm glad to see people are still using it.

On Mon, Nov 17, 2014 at 10:37 PM, CaptSaltyJack notifications@github.com wrote:

I get the same problem.

I don't think the author is paying attention to this repo anymore. Maybe it's time someone forked it and took over.

— Reply to this email directly or view it on GitHub https://github.com/kenkeiter/skeuocard/issues/148#issuecomment-63418120.

Ken Keiter R&D at CONSTRVCT http://constrvct.io/ (503) 453-5264 | @kenkeiter http://twitter.com/kenkeiter | kenkeiter.com

hellopablo commented 5 years ago

Closing abandoned issues / clearing my issues inbox.