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

Allow 11-digit Japanese phone numbers #646

Open
arjuntsaji opened this issue Sep 6, 2023 · 3 comments
Open

Allow 11-digit Japanese phone numbers #646

arjuntsaji opened this issue Sep 6, 2023 · 3 comments

Comments

@arjuntsaji
Copy link

Issue Description:

I am currently using react-phone-input-2 for handling phone numbers in my application. However, I have encountered a limitation that I'd like to discuss and potentially address.

Problem:

The library currently allows for 10-digit phone numbers, which works well for many regions. However, in Japan, some phone numbers can have 11 digits due to the introduction of the "080" prefix for mobile phones.

Proposed Solution:

I would like to propose a solution that allows for the input of 11-digit Japanese phone numbers while still maintaining compatibility with other regions. This change would accommodate users with 11-digit phone numbers without affecting the current functionality for 10-digit numbers or other regions.

Additional Information:

  • Including support for 11-digit Japanese phone numbers would enhance the usability of the library for users in Japan.
  • I am open to discussing and collaborating on this enhancement, whether it involves changes to the library's codebase or configuration options.

I look forward to hearing your thoughts on this matter and working together to find the best solution.

Thank you!

@scottwarren
Copy link

There is a prop enableLongPhoneNumbers that I think allows input of 11-digit phone numbers, although it seems to just allow longer input, not specifically limited to 11

@arjuntsaji
Copy link
Author

@scottwarren Thanks for the feedback

@shrey7070
Copy link

It allows to add number as value, but not sure how that is working, if we add enableLongNumbers={1} . It allows up to 13 digits..

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

3 participants