question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

With formatInput: false, Javascript validation is done incorrectly

See original GitHub issue

When using the formatInput: false option with hosted fields, Braintree doesn’t validate inputs correctly: entering “4111-1111-1111-1111”, for example, generates an unusable nonce with card type “Unknown”.

Example: http://codepen.io/anon/pen/rWKoMQ

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
crookedneighborcommented, Apr 25, 2018

Looks like this regression happened way back in 3.8.0. Looks like a PR that was in progress didn’t handle the merge conflicts correctly. We’ll get this fixed.

0reactions
crookedneighborcommented, May 7, 2018

This has been fixed in 3.33.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

Validation returning false when correct condition is met - ...
Im learning Javascript and am trying to set up a basic form validation which should have the following functionality: If error is found...
Read more >
Client-side form validation - Learn web development | MDN
Client-side form validation sometimes requires JavaScript if you want to ... in the wrong format, is incorrect, or is omitted altogether.
Read more >
Import format quotas and validation - Amazon DynamoDB
Common causes for data validation errors include objects being unparsable, objects being in the incorrect format (input specifies DYNAMODB_JSON but the ...
Read more >
Moment.js | Docs
Note: In case of multiple wrong units the first one is returned (because days validity may depend on month, for example). Invalid Moments....
Read more >
Input Pattern: Use It To Add Basic Data Validation In ...
The pattern attribute of the <input> element allows you to add basic data validation without resorting to JavaScript. It works by matching the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found