react-crud-mobile 1.3.263 → 1.3.265

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,10 +2297,8 @@ function UIElement(props) {
2297
2297
  debug: event.debug
2298
2298
  };
2299
2299
  main.dialog = dialog;
2300
- scope.toggleDialog(true);
2301
2300
  scope.currentDialog = dialog;
2302
- dialogScope.currentDialog = dialog;
2303
- dialogScope.toggleDialog(true);
2301
+ if (parent) parent.update == null || parent.update();
2304
2302
  scope.update();
2305
2303
  };
2306
2304
  scope.dialogHide = function (args) {
@@ -2315,14 +2313,16 @@ function UIElement(props) {
2315
2313
  var _main$dialog2;
2316
2314
  (_main$dialog2 = main.dialog) == null || _main$dialog2.crud.scope.update();
2317
2315
  }
2318
- scope.toggleDialog(false);
2319
2316
  scope.update();
2320
- var close = old.close;
2321
- if (parentScope && close) {
2322
- if (close != null && close.debug) console.log('Fechando');
2323
- parentScope.call('close', {
2324
- close: close
2325
- });
2317
+ if (parentScope) {
2318
+ var close = old.close;
2319
+ parentScope.update();
2320
+ if (close) {
2321
+ if (close != null && close.debug) console.log('Fechando');
2322
+ parentScope.call('close', {
2323
+ close: close
2324
+ });
2325
+ }
2326
2326
  }
2327
2327
  };
2328
2328
  return /*#__PURE__*/jsxRuntime.jsx(CrudContext.Provider, {