catamphetamine / react-phone-number-input

React component for international phone number input
http://catamphetamine.gitlab.io/react-phone-number-input/
MIT License
925 stars 194 forks source link

Getting 3X Warnings "value is undefined" when deleting whole international number. #371

Closed raimi6 closed 3 years ago

raimi6 commented 3 years ago

React app (Typescript) in dev mode.

My setup 1) internacinal={true} 2) defaultCountry="RU"

const [ value, setValue ] = useState<any>('+12133734253');

<PhoneInput international={true} defaultCountry="RU" value={value} onChange={setValue}/>

Actions to replicate the problem(3x Warnings): 1) Delete whole number from input field.

image

catamphetamine commented 3 years ago

If you provide an online demo then perhaps I could look at that

catamphetamine commented 3 years ago

I'll close this for now since there haven't been any other reports.