@xuda.io/runtime-bundle 1.0.670 → 1.0.672

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,12 +32076,12 @@ 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' && ['checkbox', 'radio'].includes($elm.attr('type')) && 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;
32083
32083
  if (arr_value_before_cast.includes(value_from_getter)) {
32084
- value = arr_value_before_cast.filter((item) => item !== value_from_getter);
32084
+ value = arr_value_before_cast.filter((item) => !_.isEqual(item, value_from_getter));
32085
32085
  } else {
32086
32086
  arr_value_before_cast.push(value_from_getter);
32087
32087
  value = arr_value_before_cast;
@@ -32163,7 +32163,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
32163
32163
  const row_idx = func.common.find_ROWID_idx(_ds, _ds.currentRecordId);
32164
32164
  value = _ds.data_feed.rows?.[row_idx]?.[val.value];
32165
32165
  }
32166
- if (field_prop.props.fieldType === 'array' && $elm.attr('type') === 'checkbox' && $elm.attr('value')) {
32166
+ if (field_prop.props.fieldType === 'array' && ['checkbox', 'radio'].includes($elm.attr('type')) && $elm.attr('value')) {
32167
32167
  if (value.includes($elm.attr('value'))) {
32168
32168
  value = true;
32169
32169
  } else {