react-crud-mobile 1.3.280 → 1.3.281

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.
@@ -2297,14 +2297,17 @@ function UIElement(props) {
2297
2297
  scope.update();
2298
2298
  };
2299
2299
  scope.dialogHide = function (args) {
2300
+ var _next$scope, _current$scope;
2300
2301
  var main = reactCrudUtils.ViewUtils.getCrud('view');
2301
2302
  var current = main.dialog;
2302
2303
  var next = reactCrudUtils.Utils.nvl(main.parent, null);
2303
2304
  main.dialog = next;
2304
2305
  scope.currentDialog = next;
2305
- if (current) {
2306
+ var nextScope = next == null || (_next$scope = next.scope) == null ? void 0 : _next$scope.parent;
2307
+ var currScope = current == null || (_current$scope = current.scope) == null ? void 0 : _current$scope.parent;
2308
+ if (currScope) {
2306
2309
  var close = current.close;
2307
- if (current.update) current.update();
2310
+ currScope.update();
2308
2311
  if (close) {
2309
2312
  if (close != null && close.debug) console.log('Fechando');
2310
2313
  current.scope.call('close', {
@@ -2312,8 +2315,8 @@ function UIElement(props) {
2312
2315
  });
2313
2316
  }
2314
2317
  }
2315
- if (next != null && next.update) {
2316
- next.update();
2318
+ if (nextScope) {
2319
+ nextScope.update();
2317
2320
  }
2318
2321
  };
2319
2322
  return /*#__PURE__*/jsxRuntime.jsx(CrudContext.Provider, {
@@ -2345,7 +2348,7 @@ var boxStyle = /*#__PURE__*/reactNative.StyleSheet.create({
2345
2348
  }
2346
2349
  });
2347
2350
  var box = /*#__PURE__*/_extends({}, boxStyle.box);
2348
- //v5
2351
+ //v4
2349
2352
  var elementStyle = {};
2350
2353
  elementStyle.view = {
2351
2354
  inner: {