webcat12345 / ngx-intl-tel-input

Phone number input field to support international numbers, Angular
MIT License
213 stars 342 forks source link

Placeholder showing wrong format for country code Malaysia(my) #350

Open faizaldong opened 3 years ago

faizaldong commented 3 years ago

Hi maintainer.

Need request from your side to update placeholder and format number for country malaysia

Screenshot 2020-12-09 at 5 15 47 PM

Basically number format for Malaysia without dash " - "

can you change the placeholder to this 60 12385 6789 instead?

thanks!

pasevin commented 3 years ago

We are using google-libphonenumber to get the number placeholders. We probably need to use the latest library, but it doesn't guarantee that the placeholder will be correct, as it all depends on the creators.

Another solution for us would be to create @Output() for when the country changes, and then the user could hook it up with already existing customPlaceholder property to set dynamically "amended" placeholder. This way we allow users more flexibility, but at the same time, it would involve more work.

faizaldong commented 3 years ago

It would be better if your library can give more flexibility to user. Anyway thank you for the effort. Hope I can get update for this issue.