cleave.js icon indicating copy to clipboard operation
cleave.js copied to clipboard

phoneRegionCode only works for US

Open BurN-SN opened this issue 4 years ago • 2 comments

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 .js in 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!

BurN-SN avatar Jun 21 '21 15:06 BurN-SN

5326110575294213

Gjbf677 avatar Jul 30 '22 00:07 Gjbf677

@Gjbf677 - whats your game here? This is the 2nd or 3rd post you have done like this.

rolinger avatar Jul 31 '22 00:07 rolinger