Ver a proveniência

allow edit

cr022024
ascendente
cometimento
ed2d901b31
1 ficheiros alterados com 20 adições e 1 eliminações
  1. +20
    -1
      src/pages/User/DetailsPage_Individual/UserInformationCard_Individual.js

+ 20
- 1
src/pages/User/DetailsPage_Individual/UserInformationCard_Individual.js Ver ficheiro

@@ -404,7 +404,7 @@ const UserInformationCard_Individual = ({ formData, loadDataFun }) => {
{FieldUtils.getComboField({
label: `${en.idDocType}:`,
valueName: "idDocType",
disabled: true,
disabled: !editMode || currentUserData.verifiedBy != null,
dataList: ComboData.idDocType,
filterOptions: (options) => options,
getOptionLabel: getIdDocTypeLabel,
@@ -414,6 +414,25 @@ const UserInformationCard_Individual = ({ formData, loadDataFun }) => {
}
return option?.type === value?.type;
},
onInputChange: (event, newValue, setInputValue) => {
if (newValue == null) {
setInputValue("");
return;
}
setInputValue(newValue);
},
onChange: (event, newValue) => {
if (newValue == null) {
formik.setFieldValue("idDocType", "");
setSelectedIdDocInputType("");
return;
}
formik.setFieldValue("idDocType", newValue.type);
setSelectedIdDocInputType(newValue.type);
if (newValue.type !== "HKID") {
formik.setFieldValue("checkDigit", "")
}
},
form: formik
})}
</Grid>


Carregando…
Cancelar
Guardar