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

delete number cause cannot format correctly #59

Closed
vinurs opened this issue Aug 17, 2021 · 7 comments
Closed

delete number cause cannot format correctly #59

vinurs opened this issue Aug 17, 2021 · 7 comments

Comments

@vinurs
Copy link

vinurs commented Aug 17, 2021

Kapture 2021-08-17 at 10 29 08
when delete the number, then the formatter can not format the input correctly

@caseyryan
Copy link
Owner

caseyryan commented Aug 23, 2021

what does +86 mean in the beginning? Does that mean you select a country code and then want to use the formatter to format the rest? My formatter does not support phone numbers without country code. If you want to enter custom country code (like +86 in your case) it won't work. The formatter detects the code automatically and adds it on the fly.
It works correctly if it detects a country. In your case the country wasn't detected, obviously.
You should remove your +86 and start typing phone number from 86 ... (not 123 as you do) In this case it will detect the country as China and format everything correctly.

@vinurs
Copy link
Author

vinurs commented Aug 23, 2021

i just use

inputFormatters: [
                MaskedInputFormatter("### #### ####"),
              ],

@caseyryan
Copy link
Owner

i just use

inputFormatters: [
                MaskedInputFormatter("### #### ####"),
              ],

Ah, ok. I thought you're talking about PhoneInputFormatter.
I'll take a look at this issue as soon as I have time. Thanks for reporting

@caseyryan
Copy link
Owner

Fixed in version 2.3.5.

@vinurs
Copy link
Author

vinurs commented Aug 30, 2021

Fixed in version 2.3.5.

thanks very much

@vinurs
Copy link
Author

vinurs commented Sep 1, 2021

Kapture 2021-09-02 at 00 47 46

@caseyryan there is still a error, when i delete number, type 3 3 5 9 but the cursor 9 in front of 5

@caseyryan
Copy link
Owner

Kapture 2021-09-02 at 00 47 46

@caseyryan there is still a error, when i delete number, type 3 3 5 9 but the cursor 9 in front of 5

Sorry for the delay. I was too busy at work. I took a look at your last report. Yes, that was kind of a tricky one. Fixed in version 2.3.7

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

2 participants