@xuda.io/runtime-bundle 1.0.671 → 1.0.673

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.
@@ -32076,7 +32076,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
32076
32076
  var _ds = SESSION_OBJ[SESSION_ID].DS_GLB[_dsP];
32077
32077
 
32078
32078
  // update array for checkbox that not in xu-for
32079
- if (field_prop.props.fieldType === 'array' && $elm.attr('type') === 'checkbox' && val_is_reference_field) {
32079
+ if (field_prop.props.fieldType === 'array' && ($elm.attr('type') === 'checkbox' || $elm.attr('type') === 'radio') && val_is_reference_field) {
32080
32080
  let arr_value_before_cast = _.clone((await func.datasource.get_value(SESSION_ID, bind_field_id, _dsP, _ds.currentRecordId)).ret.value);
32081
32081
  let value_from_getter = bind.getter($elm[0]);
32082
32082
  let value;
@@ -32170,6 +32170,14 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
32170
32170
  value = false;
32171
32171
  }
32172
32172
  }
32173
+
32174
+ if (field_prop.props.fieldType === 'array' && $elm.attr('type') === 'radio' && $elm.attr('value')) {
32175
+ if (value.includes($elm.attr('value'))) {
32176
+ value = $elm.attr('value');
32177
+ } else {
32178
+ value = false;
32179
+ }
32180
+ }
32173
32181
  } else {
32174
32182
  value = val.value;
32175
32183
  }