alexplumb / material-ui-phone-number

Fork of react-phone-input-2 for the Material-UI library
MIT License
122 stars 182 forks source link

Bug in typescript regions #140

Open enoh-barbu opened 2 years ago

enoh-barbu commented 2 years ago

Current definition in TS for regions is: regions?: [string] | string;

Therefore I can not assing many regions, due to TS error

image

The fix needed is to change it to: regions?: string[] | string;

viclafouch commented 2 years ago

Here, looks like this package is no more maintained.. :/

This package (https://github.com/viclafouch/mui-tel-input) handles this problem and is well maintained

enoh-barbu commented 2 years ago

@viclafouch How did you figured out that is no longer maintained?