| @@ -405,7 +405,7 @@ const UserInformationCard_Individual = ({ formData, loadDataFun }) => { | |||||
| {FieldUtils.getComboField({ | {FieldUtils.getComboField({ | ||||
| label: `${en.idDocType}:`, | label: `${en.idDocType}:`, | ||||
| valueName: "idDocType", | valueName: "idDocType", | ||||
| disabled: (!editMode), | |||||
| disabled: true, | |||||
| dataList: ComboData.idDocType, | dataList: ComboData.idDocType, | ||||
| filterOptions: (options) => options, | filterOptions: (options) => options, | ||||
| getOptionLabel: getIdDocTypeLabel, | getOptionLabel: getIdDocTypeLabel, | ||||
| @@ -415,25 +415,6 @@ const UserInformationCard_Individual = ({ formData, loadDataFun }) => { | |||||
| } | } | ||||
| return option?.type === value?.type; | 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 | form: formik | ||||
| })} | })} | ||||
| </Grid> | </Grid> | ||||