@xuda.io/runtime-bundle 1.0.663 → 1.0.665

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.
@@ -12386,8 +12386,9 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
12386
12386
  const field_changed = async function (e) {
12387
12387
  var _ds = SESSION_OBJ[SESSION_ID].DS_GLB[_dsP];
12388
12388
 
12389
+ // update array for checkbox that not in xu-for
12389
12390
  if (field_prop.props.fieldType === 'array' && $elm.attr('type') === 'checkbox' && val_is_reference_field) {
12390
- let arr_value_before_cast = (await func.datasource.get_value(SESSION_ID, bind_field_id, _dsP, _ds.currentRecordId)).ret.value;
12391
+ let arr_value_before_cast = _.clone((await func.datasource.get_value(SESSION_ID, bind_field_id, _dsP, _ds.currentRecordId)).ret.value);
12391
12392
  let value_from_getter = bind.getter($elm[0]);
12392
12393
  let value;
12393
12394
  if (arr_value_before_cast.includes(value_from_getter)) {
@@ -10108,8 +10108,9 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
10108
10108
  const field_changed = async function (e) {
10109
10109
  var _ds = SESSION_OBJ[SESSION_ID].DS_GLB[_dsP];
10110
10110
 
10111
+ // update array for checkbox that not in xu-for
10111
10112
  if (field_prop.props.fieldType === 'array' && $elm.attr('type') === 'checkbox' && val_is_reference_field) {
10112
- let arr_value_before_cast = (await func.datasource.get_value(SESSION_ID, bind_field_id, _dsP, _ds.currentRecordId)).ret.value;
10113
+ let arr_value_before_cast = _.clone((await func.datasource.get_value(SESSION_ID, bind_field_id, _dsP, _ds.currentRecordId)).ret.value);
10113
10114
  let value_from_getter = bind.getter($elm[0]);
10114
10115
  let value;
10115
10116
  if (arr_value_before_cast.includes(value_from_getter)) {