Phone Input - option for simple text input (#207)
Co-authored-by: Julien Nahum <julien@nahum.net>
This commit is contained in:
@@ -133,7 +133,7 @@ export default {
|
||||
checkbox: 'CheckboxInput',
|
||||
url: 'TextInput',
|
||||
email: 'TextInput',
|
||||
phone_number: 'PhoneInput'
|
||||
phone_number: 'TextInput'
|
||||
}
|
||||
},
|
||||
/**
|
||||
@@ -159,6 +159,9 @@ export default {
|
||||
if (field.type === 'signature') {
|
||||
return 'SignatureInput'
|
||||
}
|
||||
if (field.type === 'phone_number' && !field.use_simple_text_input) {
|
||||
return 'PhoneInput'
|
||||
}
|
||||
return this.fieldComponents[field.type]
|
||||
},
|
||||
isPublicFormPage() {
|
||||
|
||||
Reference in New Issue
Block a user