react-phone-number-input icon indicating copy to clipboard operation
react-phone-number-input copied to clipboard

Bug on `countryCallingCodeEditable`

Open jcfgt opened this issue 3 years ago • 1 comments

Hello I found a bug on countryCallingCodeEditable() which cause a bug on Guadeloupe (yes, it is my test case).

It blocks the stroke.

Uncaught Error: Unknown country: undefined
    getCountryCallingCode metadata.js:631
    getInternationalPhoneNumberPrefix getInternationalPhoneNumberPrefix.js:5
    onPhoneDigitsChange phoneInputHelpers.js:410
    PhoneNumberInput_ PhoneInputWithCountry.js:139
    formatInputText inputControl.js:135
    onChange inputControl.js:35
    _onChange Input.js:44
    React 23
    js index.js:6
    Webpack 3
2 [metadata.js:631](webpack://react-lead-form/node_modules/libphonenumber-js/es6/metadata.js)
    getCountryCallingCode metadata.js:631
    getInternationalPhoneNumberPrefix getInternationalPhoneNumberPrefix.js:5
    onPhoneDigitsChange phoneInputHelpers.js:410
    PhoneNumberInput_ PhoneInputWithCountry.js:139
    formatInputText inputControl.js:135
    onChange inputControl.js:35
    _onChange Input.js:44
    React 15
    bind_applyFunctionN self-hosted:1313
    dispatchDiscreteEvent self-hosted:1276
    React 4
    forEach self-hosted:4290
    React 4
    js index.js:6
    Webpack

Capture d'écran Deepin_zone de sélection _20220624122557 Capture d'écran Deepin_zone de sélection _20220624122620 Capture d'écran Deepin_zone de sélection _20220624122717

jcfgt avatar Jun 24 '22 10:06 jcfgt

If you want, you can provide an online demo somewhere on codesandbox.io. The demo shouldn't use any "form libraries".

catamphetamine avatar Jun 24 '22 12:06 catamphetamine