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

Data-Mask breaks validation #110

Open
ModelosPR opened this issue Aug 11, 2017 · 3 comments
Open

Data-Mask breaks validation #110

ModelosPR opened this issue Aug 11, 2017 · 3 comments

Comments

@ModelosPR
Copy link

I would like to be able to format the credit card, as it is input, make it easier to read. I tried using bootstrap-inputmask with the code data-mask="9999 9999 9999 ?9999 999", which formats it nicely. However, the input will not validate.

I tried utilizing .replace(" ", ""); at several points in an attempt to eliminate the blank spaces before validation with no success.

Any suggestions?

@PawelDecowski
Copy link
Owner

PawelDecowski commented Aug 12, 2017

You don’t need to remove spaces. The plugin normalizes the number by removing spaces and dashes.

I have no idea why it doesn’t work with bootstrap-inputmask. First thing that comes to mind is that one unbinds the other’s events. jCCV’s events are namespaced since v1.0 so that shouldn’t happen, though.

I’ll do some tests and get back to you.

@ModelosPR
Copy link
Author

Hi, Where you able to find anything on this? Thank!

@PawelDecowski
Copy link
Owner

Sorry, I’ve been quite busy lately! I’ll look into it as soon as I can.

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