react-crud-mobile 1.3.279 → 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.
@@ -2288,14 +2288,17 @@ function UIElement(props) {
2288
2288
  scope.update();
2289
2289
  };
2290
2290
  scope.dialogHide = function (args) {
2291
+ var _next$scope, _current$scope;
2291
2292
  var main = ViewUtils.getCrud('view');
2292
2293
  var current = main.dialog;
2293
2294
  var next = Utils.nvl(main.parent, null);
2294
2295
  main.dialog = next;
2295
2296
  scope.currentDialog = next;
2296
- if (current) {
2297
+ var nextScope = next == null || (_next$scope = next.scope) == null ? void 0 : _next$scope.parent;
2298
+ var currScope = current == null || (_current$scope = current.scope) == null ? void 0 : _current$scope.parent;
2299
+ if (currScope) {
2297
2300
  var close = current.close;
2298
- if (current.update) current.update();
2301
+ currScope.update();
2299
2302
  if (close) {
2300
2303
  if (close != null && close.debug) console.log('Fechando');
2301
2304
  current.scope.call('close', {
@@ -2303,8 +2306,8 @@ function UIElement(props) {
2303
2306
  });
2304
2307
  }
2305
2308
  }
2306
- if (next != null && next.update) {
2307
- next.update();
2309
+ if (nextScope) {
2310
+ nextScope.update();
2308
2311
  }
2309
2312
  };
2310
2313
  return /*#__PURE__*/jsx(CrudContext.Provider, {