patw0929 / react-intl-tel-input

Rewrite International Telephone Input in React.js. (Looking for maintainers, and PRs & contributors are also welcomed!)
https://patw0929.github.io/react-intl-tel-input/
MIT License
284 stars 221 forks source link

Cannot set the "readonly" attribute using "telInputProps" #289

Open kaitoqueiroz opened 5 years ago

kaitoqueiroz commented 5 years ago

i'm attempting to set the readonly attribute using telInputProps, but it does not apply to the input.

<IntlTelInput telInputProps={ { readOnly: 'readonly' } } onPhoneNumberChange={ onChange } onPhoneNumberBlur={ onBlur } />

lo2aai commented 3 years ago

Did you tried to pass readOnly: true