Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with Expiry Date #48

Open
ljscodex opened this issue May 23, 2019 · 1 comment
Open

Problem with Expiry Date #48

ljscodex opened this issue May 23, 2019 · 1 comment

Comments

@ljscodex
Copy link

Hi.
We have problems with expiry date funct.

The problem appears when you use one input to month and year.

for example:

    <input #expiryInput="ngModel" [(ngModel)]="expiryFull"
                      class="form-control" name="year" placeholder="•• / ••" (ngModelChange)="testValueExpired($event)"
                      required data-stripe="exp_year"  id="cc-exp-date" type="tel" autocomplete="cc-exp" ccExp [maxLength]="7"/>

In this case we want to validate years with 2 digits only.

Problem:

When a user press the keys very fast the year part could have from 2 to 4 digits, so, for us is a problem.

i modded the file credit-card.js to validate only 2 digit , but for futher version may you can add some decorator for 2 or 4 digits.

@s-a-y
Copy link
Contributor

s-a-y commented Oct 9, 2019

duplicate of #30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants