You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I like your library, but there is some options i want to add
Show distinct country codes without area codes option
i do not really like this kind of duplicates in select, so we need here a boolean prop that will show only country codes without area codes
Return only string option
PhoneNumber object is great, but not all projects need that detailed object, sometimes we need just string. This library applies string in value prop, but when it returns to Form.Item, it always return object. I think there must be prop: valueAsString, that returns string like "+1 123 123123"
The text was updated successfully, but these errors were encountered:
@kanatzholayev, thanks for the thoughts and recommendations. I like the idea of a boolean property that will show only a distinct list of countries. I will work on it in the coming weeks.
PhoneNumber object is great, but not all projects need that detailed object, sometimes we need just string.
Agreed, and of course, I counted this case. Ant Design's Form.Item has this normalize property that can easily convert anything to anything, such as an object, to a string.
Summary
I like your library, but there is some options i want to add
Show distinct country codes without area codes option
Return only string option
PhoneNumber object is great, but not all projects need that detailed object, sometimes we need just string. This library applies string in value prop, but when it returns to Form.Item, it always return object. I think there must be prop: valueAsString, that returns string like "+1 123 123123"
The text was updated successfully, but these errors were encountered: