albeebe/phoneformat.js

Germany number validation error

Closed this issue · 0 comments

I am validating and then applying local formatting to a field in a form.
If I put a valid German number and the function applies the format, the field turns invalid.

Example:
I input 015733974709, field is marked as valid (according the lib)
The function formatLocal turns it into "01573 3974709"
The validation triggers again and marks the field as invalid.