Explorar el Código

allow edit

uat
Jason Chuang hace 10 horas
padre
commit
30886689fa
Se han modificado 1 ficheros con 20 adiciones y 1 borrados
  1. +20
    -1
      src/pages/User/DetailsPage_Individual/UserInformationCard_Individual.js

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

@@ -405,7 +405,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,
@@ -415,6 +415,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>


Cargando…
Cancelar
Guardar