complete debuging
This commit is contained in:
@@ -393,7 +393,20 @@ const UpdateForm = ({LoanDetails, LoanId}) => {
|
||||
placeholder={t(
|
||||
"ShowLoan.text_field_enter_your_postal_code"
|
||||
)}
|
||||
value={props.values.postal_code}
|
||||
type={'tel'}
|
||||
onChange={(event) => {
|
||||
const inputValue = event.target.value;
|
||||
if (isNaN(Number(inputValue))) {
|
||||
return;
|
||||
}
|
||||
props.handleChange({
|
||||
target: {
|
||||
name: "postal_code",
|
||||
value: inputValue,
|
||||
},
|
||||
});
|
||||
}}
|
||||
error={!!(props.touched.postal_code && props.errors.postal_code)}
|
||||
fullWidth
|
||||
helperText={
|
||||
@@ -497,10 +510,21 @@ const UpdateForm = ({LoanDetails, LoanId}) => {
|
||||
sx={{width: "100%"}}
|
||||
name="telephone_number"
|
||||
variant="outlined"
|
||||
type={'tel'}
|
||||
size="small"
|
||||
type={'tel'}
|
||||
value={props.values.telephone_number}
|
||||
onChange={props.handleChange}
|
||||
onChange={(event) => {
|
||||
const inputValue = event.target.value;
|
||||
if (isNaN(Number(inputValue))) {
|
||||
return;
|
||||
}
|
||||
props.handleChange({
|
||||
target: {
|
||||
name: "telephone_number",
|
||||
value: inputValue,
|
||||
},
|
||||
});
|
||||
}}
|
||||
label={t("ShowLoan.text_field_tel_number")}
|
||||
placeholder={t(
|
||||
"ShowLoan.text_field_enter_your_tel_number"
|
||||
|
||||
Reference in New Issue
Block a user