Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug on countryCallingCodeEditable #408

Open
jcfgt opened this issue Jun 24, 2022 · 1 comment
Open

Bug on countryCallingCodeEditable #408

jcfgt opened this issue Jun 24, 2022 · 1 comment

Comments

@jcfgt
Copy link

jcfgt commented Jun 24, 2022

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

@catamphetamine
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants