You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Does exceed default 15 digit phone number limit
// Does exceed default 15 digit phone number limitif(value.replace(/\D/g,'').length>15){if(this.props.enableLongNumbers===false)return;if(typeofthis.props.enableLongNumbers==='number'){if(value.replace(/\D/g,'').length>this.props.enableLongNumbers)return;}}
I'm trying to set the input limit to 10 in the case of French users, who are expecting the following format XX XX XX XX XX but currently react-phone-input-2 uses X XX XX XX XX which is not what my French users expect and is causing user errors when inputting.
Is it possible to either change the formatting of French phone number inputs to XX XX XX XX XX, or else allow enableLongNumbers to be set at 10?
The text was updated successfully, but these errors were encountered:
react-phone-input-2/src/index.js
Line 536 in 39f787c
I'm trying to set the input limit to 10 in the case of French users, who are expecting the following format
XX XX XX XX XX
but currently react-phone-input-2 usesX XX XX XX XX
which is not what my French users expect and is causing user errors when inputting.Is it possible to either change the formatting of French phone number inputs to
XX XX XX XX XX
, or else allowenableLongNumbers
to be set at 10?The text was updated successfully, but these errors were encountered: