Skip to content

Commit 0dbb8ac

Browse files
committed
+ sign appears when country is selected
1 parent f289a9f commit 0dbb8ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/Formsy/PhoneInput.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class PhoneInput extends Component {
3636
this.props.setValue(value)
3737
let currentCountry
3838
const asYouType = new AsYouType()
39-
asYouType.input('+' + value)
39+
asYouType.input(value[0] === '+' ? value : '+' + value)
4040
if (asYouType.country) {
4141
currentCountry = _.filter(this.props.listCountry, { alpha2: asYouType.country })[0]
4242
if (currentCountry) {

0 commit comments

Comments
 (0)