LouisMazel/maz-ui

[Issue with the phone number input component][<MazPhoneNumberInput>]

hadelnasr opened this issue · 12 comments

Describe the bug

While selecting some countries and start inputting the phone number, the package added some extra numbers from itself as shown with the below screenshots

To Reproduce

Steps to reproduce the behavior:

choose united arab emirates (code +971)
start typing phone number without leading zero, at success the package appends 0 by itself although the country phone number doesn't restrict adding a leading zero

another case:
choose Anguilla (code +1)
start typing the phone number by adding 264 then any digits, you'll find the package by itself adding 264 again by itself

Expected behavior

In the above both cases, the package should obey the values i'm entering

Screenshots

1
2

Desktop

  • OS: [e.g. Linux / Windows]
  • Browser [e.g. chromei]

Any info guys plz??

@LouisMazel any updates so far?

Hi @hadelnasr,

I just came back from vacation, I will take time to fix it soon. May be add an option to disable all auto-format of the phone number.

Thanks @LouisMazel for your continuous support
Awaiting your feedback

@LouisMazel any updates so far?

@LouisMazel any updates please?

@LouisMazel please give me expected date for fixing this issue?
thanks for your continuous support

@LouisMazel @pboos @developerdino @dnyer11

any updates guys? please try giving me any estimate??

Hi @hadelnasr,

Yes, it's resolved but it's available only in beta for the moment.
You can use the v3.46.1-beta.4.

You just have to disable the auto-formatting like this:

<MazPhoneNumberInput
  v-model="phoneNumber"
  :auto-format="false"
/>

Enjoy.

FYI: I will close this issue when the fix is released in v3.46.1

@LouisMazel many thanks for your continuous support

It's release in the v3.47.0 finally

Enjoy