react-crud-mobile 1.3.264 → 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.
@@ -2288,10 +2288,8 @@ function UIElement(props) {
2288
2288
  debug: event.debug
2289
2289
  };
2290
2290
  main.dialog = dialog;
2291
- scope.toggleDialog(true);
2292
2291
  scope.currentDialog = dialog;
2293
- dialogScope.currentDialog = dialog;
2294
- dialogScope.toggleDialog(true);
2292
+ if (parent) parent.update == null || parent.update();
2295
2293
  scope.update();
2296
2294
  };
2297
2295
  scope.dialogHide = function (args) {
@@ -2306,14 +2304,16 @@ function UIElement(props) {
2306
2304
  var _main$dialog2;
2307
2305
  (_main$dialog2 = main.dialog) == null || _main$dialog2.crud.scope.update();
2308
2306
  }
2309
- scope.toggleDialog(false);
2310
2307
  scope.update();
2311
- var close = old.close;
2312
- if (parentScope && close) {
2313
- if (close != null && close.debug) console.log('Fechando');
2314
- parentScope.call('close', {
2315
- close: close
2316
- });
2308
+ if (parentScope) {
2309
+ var close = old.close;
2310
+ parentScope.update();
2311
+ if (close) {
2312
+ if (close != null && close.debug) console.log('Fechando');
2313
+ parentScope.call('close', {
2314
+ close: close
2315
+ });
2316
+ }
2317
2317
  }
2318
2318
  };
2319
2319
  return /*#__PURE__*/jsx(CrudContext.Provider, {