react-crud-mobile 1.3.30 → 1.3.32

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.
@@ -509,9 +509,7 @@ function UISelect(props) {
509
509
  var theme = scope.getTheme();
510
510
  var headerStyle = Utils.nvl((_theme$styles = theme.styles) == null || (_theme$styles = _theme$styles.defaults) == null ? void 0 : _theme$styles.header, {});
511
511
  var handlePress = function handlePress() {
512
- var _modalVisible = !modalVisible;
513
- main.data.selectIsOpen = _modalVisible;
514
- setModalVisible(_modalVisible);
512
+ setModalVisible(!modalVisible);
515
513
  };
516
514
  var iconColor = Utils.nvl((_theme$colors = theme.colors) == null ? void 0 : _theme$colors.text, '#100e0e');
517
515
  var modalColor = Utils.nvl(headerStyle.color, 'white');
@@ -519,9 +517,7 @@ function UISelect(props) {
519
517
  color: modalColor
520
518
  };
521
519
  var onClick = function onClick(_ref) {
522
- var crud = _ref.crud,
523
- value = _ref.value;
524
- console.log(crud);
520
+ var value = _ref.value;
525
521
  var val = value;
526
522
  if (element.isObject && val != null && val.object) {
527
523
  scope.changeValue(val == null ? void 0 : val.object);
@@ -530,7 +526,7 @@ function UISelect(props) {
530
526
  } else {
531
527
  scope.changeValue(value);
532
528
  }
533
- handlePress();
529
+ setModalVisible(false);
534
530
  };
535
531
  var style = function style(part, extra) {
536
532
  var all = _extends({}, styles$3[part], extra);
@@ -539,7 +535,7 @@ function UISelect(props) {
539
535
  var isModalVisible = function isModalVisible() {
540
536
  return modalVisible;
541
537
  };
542
- //v3
538
+ //v4
543
539
  useEffect(function () {
544
540
  MobileUtils.syncTheme();
545
541
  }, [modalVisible]);