Open carloscba opened 4 years ago
Hi, You need to pass the getter method to inputProps like this:
<TextField
inputProps={getExpiryDateProps({ onChange: handleChangeExpiryDate })}
defaultValue = { expiryDate }
error={ (erroredInputs.expiryDate && touchedInputs.expiryDate) }
helperText= { (touchedInputs.expiryDate) && erroredInputs.expiryDate }
label="Expiry Date"
type="text"
margin="dense"
fullWidth
/>
I'm working with react-payment-inputs and material ui:
In this example validation work fine but don't format the input date as 00/00
If I implement a simple input everything it's ok
Saludos, muchas gracias.