-
Notifications
You must be signed in to change notification settings - Fork 342
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
separateDialCode option bug when patching in Angular #334
Comments
Hi |
I'm also seeing the same exact problem. Separating dial code from the input is desirable (who wants to enter their own dial code?). |
Yes, this library doesn't clean your phone numbers for you. So this is not a bug. It does return an object which you can use to save data to your database or store:
So when using As I understand @vasco88, you only have numbers with dial codes and would like the library to recognize that automatically and clean it. I am not against it, but this would be a new feature. |
This is misleading, as you don't have to enter your own dial code in neither case ( |
Hi) Have the same issue. |
but before version 2.3.4 it was cleaning the number in the input field you can check with this stackbliz : |
I have the same problem but with the core library, I don't think this wrapper is the issue. EDIT : I was wrong, my issue was with |
I used this snippet as a workaround. Using a setter you can detect when the value it's going to be changed and then perform an update to the input value with
|
I also need country code to be removed from phone number if separateDialCode is set to true. |
Hi,
I'm using this function in roder to patch values to a form in Angular:
While whatsapp_agente is +34600000000 from database, when using separateDialCode=true, the dialCode is shown in the input field. Furthermore, it makes the validation number to be wrong.
Is it a bug or am I missing something else?
Regards,
The text was updated successfully, but these errors were encountered: