PolymerElements / gold-phone-input

An input element that only allows phone numbers
https://webcomponents.org/element/PolymerElements/gold-phone-input
13 stars 30 forks source link

[Feature request] Use googlei18n/libphonenumber #94

Open xelra opened 6 years ago

xelra commented 6 years ago

It would be really great if the validation and formatting could be improved with googlei18n/libphonenumber.

The input should have a dropdown with countrycodes and flags and its use should be optional.

It should have "as-you-type" formatting and also update the selection in the dropdown as you type (in case you just write an international number).

The info that is then provided by googlei18n/libphonenumber can be used to make a great number of methods and events available.

LeongTitanFour commented 5 years ago

How to integrate with googlei18n and gold-phone-input?