@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asaleh37/ui-base",
3
- "version": "25.8.23-1",
3
+ "version": "25.8.23-2",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "Ahmed Saleh Mohamed",
@@ -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
- formManager.setValue(
104
- field.fieldName,
105
- retrievedRecord[field.fieldName] + ""
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
  }