react-crud-mobile 1.3.11 → 1.3.13

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.
@@ -494,6 +494,7 @@ function UISelect(props) {
494
494
  modalVisible = _useState[0],
495
495
  setModalVisible = _useState[1];
496
496
  var scope = props.scope;
497
+ var element = scope.original;
497
498
  var items = reactCrudUtils.Utils.nvl(scope.getOptions(), []);
498
499
  var placeholder = scope.attr('placeholder', 'Selecione...');
499
500
  var value = scope.getDisplayValue();
@@ -506,7 +507,12 @@ function UISelect(props) {
506
507
  };
507
508
  var onClick = function onClick(_ref) {
508
509
  var value = _ref.value;
509
- scope.changeValue(value);
510
+ var val = value;
511
+ if (element.isObject && val != null && val.object) {
512
+ scope.changeValue(val == null ? void 0 : val.object);
513
+ } else {
514
+ scope.changeValue(value);
515
+ }
510
516
  handlePress();
511
517
  };
512
518
  var style = function style(part, extra) {
@@ -1407,7 +1413,6 @@ function UIModal(props) {
1407
1413
  color: color
1408
1414
  };
1409
1415
  var key = scope.currentDialog.name + "-" + index;
1410
- console.log(key);
1411
1416
  return /*#__PURE__*/jsxRuntime.jsxs(reactNative.Modal, {
1412
1417
  animationType: "slide",
1413
1418
  transparent: true,