@asaleh37/ui-base 25.8.23-1 → 25.8.23-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/templates/DataEntryTemplates/TemplateDataForm/FormElementField.tsx +1 -1
- package/src/components/templates/DataEntryTemplates/TemplateDataForm/TemplateForm.tsx +14 -4
package/package.json
CHANGED
|
@@ -229,7 +229,7 @@ const FormElementField: React.FC<FormElementFieldProps> = (
|
|
|
229
229
|
onChangeCallBack={(v: any, selectedRecord: any) => {
|
|
230
230
|
let newValue = null;
|
|
231
231
|
if (v) {
|
|
232
|
-
newValue = v
|
|
232
|
+
newValue = v;
|
|
233
233
|
}
|
|
234
234
|
formManager.setValue(fieldName, newValue);
|
|
235
235
|
if (props?.formProps?.onValueChangeCallBack) {
|
|
@@ -100,10 +100,20 @@ const TemplateForm: React.FC<TemplateFormProps> = (
|
|
|
100
100
|
field?.fieldType === "combobox" &&
|
|
101
101
|
retrievedRecord[field.fieldName]
|
|
102
102
|
) {
|
|
103
|
-
|
|
104
|
-
field
|
|
105
|
-
|
|
106
|
-
)
|
|
103
|
+
if (
|
|
104
|
+
field?.comboboxValueDataType &&
|
|
105
|
+
field?.comboboxValueDataType === "string"
|
|
106
|
+
) {
|
|
107
|
+
formManager.setValue(
|
|
108
|
+
field.fieldName,
|
|
109
|
+
retrievedRecord[field.fieldName] + ""
|
|
110
|
+
);
|
|
111
|
+
} else {
|
|
112
|
+
formManager.setValue(
|
|
113
|
+
field.fieldName,
|
|
114
|
+
retrievedRecord[field.fieldName]
|
|
115
|
+
);
|
|
116
|
+
}
|
|
107
117
|
}
|
|
108
118
|
}
|
|
109
119
|
}
|