-
Notifications
You must be signed in to change notification settings - Fork 197
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
country selected reset when starting typing number #131
Comments
Not until you post the exact reproduction steps. |
I reproduce this issue on both Versions 1.0.11 and 1.0.12
On the first sample of your demo page, once you have selected a country, during typing the selected country is never unselected which is normally expected. I have already used your component by the past and it was working like a charm. |
Yes. |
Hi, the bug is reproductible on gh-pages branch when I upgrade to react 16. |
I see, so React changed They called it "bugfixing" but instead they broke it. We'll see how it goes. |
Ok, they just close issues and blame developers for their code being so-called "buggy". |
Yes indeed they do not respect SEMVER anymore.... can't believe it. Anyway I'd like to thank you for your reactivity, |
@fabien-tanguy Nah, I'm just having fun with them ) |
Sure, they are good :) |
Fixed in version |
Hi, import PhoneInput from 'react-phone-number-input/native'
<PhoneInput
country={this.state.countryCode}
countries={["FR","ES","CA","US"]}
id="telInput"
ref={node => {
this.keyboardRef = "#telInput";
return 0;
}}
onCountryChange={(value)=>{this.setState({countryCode:value})}}
placeholder={this.props.placeholder}
value={this.state.value}
onChange={(value)=>{this.handleChange(null,value)}}
/> I don't want to use the component with externals dependencies on select |
@clem91 What's your exact issue? |
The same described here. When I start typing numbers on input, the selector change and display the first flag in his list. |
Provide a visual demo (a gif or a video) |
@clem91 You could try cloning this repo, switching to |
I have tried your very usefull component, unfortunately I have an issue while testing it in a basic create react app (empty one).
First I choose a country in the select then as soon as I type numbers in the input, the selected country disappear to let show the worldwide fallback icon.
I use this sample test :
<Phone smartCaret={false} placeholder={"any phone number"} value={ this.state.value } onChange={ value => this.setState({ value }) } displayInitialValueAsLocalNumber={true} />
Hope you can reproduce it.
The text was updated successfully, but these errors were encountered: