react-crud-mobile 1.3.281 → 1.3.283

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.
@@ -1375,6 +1375,7 @@ function UIToast() {
1375
1375
 
1376
1376
  function UIModal(props) {
1377
1377
  var _theme$styles;
1378
+ var scrollRef = React.useRef(null);
1378
1379
  var owner = props.scope;
1379
1380
  var _useState = React.useState(0),
1380
1381
  index = _useState[0],
@@ -1382,7 +1383,6 @@ function UIModal(props) {
1382
1383
  var dialog = owner.currentDialog;
1383
1384
  //v2
1384
1385
  var curr = dialog == null ? void 0 : dialog.crud;
1385
- var main = reactCrudUtils.ViewUtils.getCrud('view');
1386
1386
  if (!dialog) {
1387
1387
  return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {});
1388
1388
  }
@@ -1395,7 +1395,6 @@ function UIModal(props) {
1395
1395
  var label = scope.getLabel();
1396
1396
  var theme = scope.getTheme();
1397
1397
  var headerStyle = reactCrudUtils.Utils.nvl((_theme$styles = theme.styles) == null || (_theme$styles = _theme$styles.defaults) == null ? void 0 : _theme$styles.header, {});
1398
- var scrollRef = React.useRef(null);
1399
1398
  var headerRight = reactCrudUtils.ComponentUtils.getDefine(props, 'header', 'right');
1400
1399
  var bottom = reactCrudUtils.ComponentUtils.getDefine(props, 'bottom');
1401
1400
  var style = function style(part, extra) {
@@ -2300,7 +2299,7 @@ function UIElement(props) {
2300
2299
  var _next$scope, _current$scope;
2301
2300
  var main = reactCrudUtils.ViewUtils.getCrud('view');
2302
2301
  var current = main.dialog;
2303
- var next = reactCrudUtils.Utils.nvl(main.parent, null);
2302
+ var next = reactCrudUtils.Utils.nvl(current.parent, null);
2304
2303
  main.dialog = next;
2305
2304
  scope.currentDialog = next;
2306
2305
  var nextScope = next == null || (_next$scope = next.scope) == null ? void 0 : _next$scope.parent;