cleave.js
cleave.js copied to clipboard
phoneRegionCode only works for US
I cannot seem to make my regionCodes work correctly. I understand the formatting is dependent on inputting a valid area code for the region. I have tried inputting two numbers (my US number and my German number, so that I know both are valid). The US region code seems to work as expected. German formatting does not and allows unlimited entry.
Solutions I have tried:
- Including/excluding
.jsin the import line. - Changing case of phoneRegionCode (us, US, de, DE)
- adding/removing unused import (using JUST cleave-phone.de for DE phoneRegionCode and vice-versa for US)
- changing order to see if second import "overrides" first import.
None of these solutions has worked.
Here is a CodeSandbox Sorry to use CodeSandbox; I don't know how to import in jsfiddle.
Thanks!
5326110575294213
@Gjbf677 - whats your game here? This is the 2nd or 3rd post you have done like this.