Fix input field to limit to 10 digits
This commit is contained in:
parent
b9bb960152
commit
46855c9de0
@ -48,8 +48,8 @@ export default {
|
|||||||
validationError: 'Please enter a 10-digit phone number'
|
validationError: 'Please enter a 10-digit phone number'
|
||||||
},
|
},
|
||||||
phoneExt: {
|
phoneExt: {
|
||||||
mask: createNumberMask({ prefix: '', allowDecimal: false, allowLeadingZeroes: true, includeThousandsSeparator: false }),
|
mask: createNumberMask({ prefix: '', allowDecimal: false, integerLimit: 10, allowLeadingZeroes: true, includeThousandsSeparator: false }),
|
||||||
match: /^\w{0,10}$/,
|
match: /^\d{0,10}$/,
|
||||||
unmask: [],
|
unmask: [],
|
||||||
validationError: 'Optional: Please enter up to 10 digits'
|
validationError: 'Optional: Please enter up to 10 digits'
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user