react-crud-mobile 1.3.265 → 1.3.266
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 +1 -10
- 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 +1 -10
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/elements/core/UIModal.tsx +1 -10
@@ -1380,9 +1380,6 @@ function UIModal(props) {
|
|
1380
1380
|
index = _useState[0],
|
1381
1381
|
setIndex = _useState[1];
|
1382
1382
|
var dialog = owner.currentDialog;
|
1383
|
-
var _useState2 = React.useState(!reactCrudUtils.Utils.isEmpty(dialog)),
|
1384
|
-
modalVisible = _useState2[0],
|
1385
|
-
setModalVisible = _useState2[1];
|
1386
1383
|
//v2
|
1387
1384
|
var curr = dialog == null ? void 0 : dialog.crud;
|
1388
1385
|
var main = reactCrudUtils.ViewUtils.getCrud('view');
|
@@ -1393,9 +1390,7 @@ function UIModal(props) {
|
|
1393
1390
|
setIndex(++index);
|
1394
1391
|
};
|
1395
1392
|
if (dialog.debug) console.log(dialog);
|
1396
|
-
|
1397
|
-
return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {});
|
1398
|
-
}
|
1393
|
+
var modalVisible = curr.uuid === ((_main$dialog = main.dialog) == null || (_main$dialog = _main$dialog.crud) == null ? void 0 : _main$dialog.uuid);
|
1399
1394
|
var scope = dialog.scope;
|
1400
1395
|
var label = scope.getLabel();
|
1401
1396
|
var theme = scope.getTheme();
|
@@ -1414,10 +1409,6 @@ function UIModal(props) {
|
|
1414
1409
|
event: {}
|
1415
1410
|
});
|
1416
1411
|
};
|
1417
|
-
scope.toggleDialog = function (vis) {
|
1418
|
-
modalVisible = vis;
|
1419
|
-
setModalVisible(modalVisible);
|
1420
|
-
};
|
1421
1412
|
scope.put('scrollRef', scrollRef);
|
1422
1413
|
var original = owner.original;
|
1423
1414
|
reactCrudUtils.ComponentUtils.setViewScope(scope);
|