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.
- package/dist/react-crud-mobile.cjs.development.js +4 -8
- package/dist/react-crud-mobile.cjs.development.js.map +1 -1
- package/dist/react-crud-mobile.cjs.production.min.js +1 -1
- package/dist/react-crud-mobile.cjs.production.min.js.map +1 -1
- package/dist/react-crud-mobile.esm.js +4 -8
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/core/UISelect.tsx +4 -7
|
@@ -517,9 +517,7 @@ function UISelect(props) {
|
|
|
517
517
|
var theme = scope.getTheme();
|
|
518
518
|
var headerStyle = reactCrudUtils.Utils.nvl((_theme$styles = theme.styles) == null || (_theme$styles = _theme$styles.defaults) == null ? void 0 : _theme$styles.header, {});
|
|
519
519
|
var handlePress = function handlePress() {
|
|
520
|
-
|
|
521
|
-
main.data.selectIsOpen = _modalVisible;
|
|
522
|
-
setModalVisible(_modalVisible);
|
|
520
|
+
setModalVisible(!modalVisible);
|
|
523
521
|
};
|
|
524
522
|
var iconColor = reactCrudUtils.Utils.nvl((_theme$colors = theme.colors) == null ? void 0 : _theme$colors.text, '#100e0e');
|
|
525
523
|
var modalColor = reactCrudUtils.Utils.nvl(headerStyle.color, 'white');
|
|
@@ -527,9 +525,7 @@ function UISelect(props) {
|
|
|
527
525
|
color: modalColor
|
|
528
526
|
};
|
|
529
527
|
var onClick = function onClick(_ref) {
|
|
530
|
-
var
|
|
531
|
-
value = _ref.value;
|
|
532
|
-
console.log(crud);
|
|
528
|
+
var value = _ref.value;
|
|
533
529
|
var val = value;
|
|
534
530
|
if (element.isObject && val != null && val.object) {
|
|
535
531
|
scope.changeValue(val == null ? void 0 : val.object);
|
|
@@ -538,7 +534,7 @@ function UISelect(props) {
|
|
|
538
534
|
} else {
|
|
539
535
|
scope.changeValue(value);
|
|
540
536
|
}
|
|
541
|
-
|
|
537
|
+
setModalVisible(false);
|
|
542
538
|
};
|
|
543
539
|
var style = function style(part, extra) {
|
|
544
540
|
var all = _extends({}, styles$3[part], extra);
|
|
@@ -547,7 +543,7 @@ function UISelect(props) {
|
|
|
547
543
|
var isModalVisible = function isModalVisible() {
|
|
548
544
|
return modalVisible;
|
|
549
545
|
};
|
|
550
|
-
//
|
|
546
|
+
//v4
|
|
551
547
|
React.useEffect(function () {
|
|
552
548
|
MobileUtils.syncTheme();
|
|
553
549
|
}, [modalVisible]);
|