react-input-mask
react-input-mask copied to clipboard
How do I get the value without mask?
I need send the phone value like +5573916232 but always get the masked value.
need that too
Need this
Try stripping any non-numeric chars from the string. Something like this will do it:
function stripPhonenumber(phonenumber) {
return phonenumber.replace(/[^0-9]+/g, "");
}
Need this
Same here. There should be an option to ignore the mask and not let it be part of the input value.
Any news?
https://github.com/sanniassin/react-input-mask/issues/25#issuecomment-1050817718