@xuda.io/runtime-bundle 1.0.657 → 1.0.658

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.
@@ -32066,6 +32066,12 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
32066
32066
 
32067
32067
  const field_changed = async function (e) {
32068
32068
  var _ds = SESSION_OBJ[SESSION_ID].DS_GLB[_dsP];
32069
+
32070
+ if (field_prop.props.fieldType === 'array' && $elm.attr('type') === 'checkbox' && val_is_reference_field) {
32071
+ let value_before_cast = await func.datasource.get_value(SESSION_ID, bind_field_id, _dsP, _ds.currentRecordId);
32072
+ debugger;
32073
+ }
32074
+
32069
32075
  var value = await func.common.get_cast_val(SESSION_ID, 'xu-bind', 'value', field_prop.props.fieldType, bind.getter($elm[0]));
32070
32076
 
32071
32077
  if (field_prop.props.fieldType === 'object' && !val_is_reference_field) {
@@ -32131,7 +32137,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
32131
32137
  const row_idx = func.common.find_ROWID_idx(_ds, _ds.currentRecordId);
32132
32138
  value = _ds.data_feed.rows?.[row_idx]?.[val.value];
32133
32139
  }
32134
- if (_.isArray(value) && $elm.attr('type') === 'checkbox' && $elm.attr('value')) {
32140
+ if (field_prop.props.fieldType === 'array' && $elm.attr('type') === 'checkbox' && $elm.attr('value')) {
32135
32141
  if (value.includes($elm.attr('value'))) {
32136
32142
  value = true;
32137
32143
  } else {