react-crud-mobile 1.3.278 → 1.3.279
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.
- package/dist/react-crud-mobile.cjs.development.js +4 -7
- package/dist/react-crud-mobile.cjs.development.js.map +1 -1
- package/dist/react-crud-mobile.cjs.production.min.js +1 -1
- package/dist/react-crud-mobile.cjs.production.min.js.map +1 -1
- package/dist/react-crud-mobile.esm.js +4 -7
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/UIElement.tsx +4 -7
@@ -2297,17 +2297,14 @@ function UIElement(props) {
|
|
2297
2297
|
scope.update();
|
2298
2298
|
};
|
2299
2299
|
scope.dialogHide = function (args) {
|
2300
|
-
var _next$scope, _current$scope;
|
2301
2300
|
var main = reactCrudUtils.ViewUtils.getCrud('view');
|
2302
2301
|
var current = main.dialog;
|
2303
2302
|
var next = reactCrudUtils.Utils.nvl(main.parent, null);
|
2304
2303
|
main.dialog = next;
|
2305
2304
|
scope.currentDialog = next;
|
2306
|
-
|
2307
|
-
var currScope = current == null || (_current$scope = current.scope) == null ? void 0 : _current$scope.parent;
|
2308
|
-
if (currScope) {
|
2305
|
+
if (current) {
|
2309
2306
|
var close = current.close;
|
2310
|
-
|
2307
|
+
if (current.update) current.update();
|
2311
2308
|
if (close) {
|
2312
2309
|
if (close != null && close.debug) console.log('Fechando');
|
2313
2310
|
current.scope.call('close', {
|
@@ -2315,8 +2312,8 @@ function UIElement(props) {
|
|
2315
2312
|
});
|
2316
2313
|
}
|
2317
2314
|
}
|
2318
|
-
if (
|
2319
|
-
|
2315
|
+
if (next != null && next.update) {
|
2316
|
+
next.update();
|
2320
2317
|
}
|
2321
2318
|
};
|
2322
2319
|
return /*#__PURE__*/jsxRuntime.jsx(CrudContext.Provider, {
|