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

cc-exp autocomplete does not work on safari #82

Open
hisham opened this issue Jan 26, 2021 · 2 comments
Open

cc-exp autocomplete does not work on safari #82

hisham opened this issue Jan 26, 2021 · 2 comments

Comments

@hisham
Copy link

hisham commented Jan 26, 2021

On Safari, autocomplete for expiry date does not work:

<input id="cc-exp-date" type="tel" autocomplete="cc-exp" ccExp>

It appears Safari wants month and year to be in two separate input boxes - see https://stackoverflow.com/a/53501982/123254

@timofei-iatsenko
Copy link
Owner

Thanks for your feedback. I'm not actively working on this library now. It would be really nice to have PR to fix it.

@Noitidart
Copy link

Noitidart commented Jun 14, 2022

How does Safari identify which one is year and which one is month? by the name? is it important to use CCExpiryMonth and CCExpiryYear as exact name?

<input type="text" name="CCExpiryMonth" id="CCExpiryMonth" value="" placeholder="MM" autocomplete="cc-exp">
<input type="text" name="CCExpiryYear" id="CCExpiryYear" value="" placeholder="YYYY" autocomplete="cc-exp"> 

Any other examples that work in safari that you can share?

What about using cc-exp-month and cc-exp-year for the "autocomplete" values?

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

3 participants