react-crud-mobile 1.3.275 → 1.3.277
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 +11 -15
- 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 +11 -15
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/UIElement.tsx +12 -15
package/package.json
CHANGED
@@ -705,29 +705,26 @@ export default function UIElement(props: ElementType) {
|
|
705
705
|
|
706
706
|
scope.dialogHide = (args?: MethodType) => {
|
707
707
|
let main = ViewUtils.getCrud('view');
|
708
|
-
let
|
709
|
-
let
|
708
|
+
let current = main.dialog;
|
709
|
+
let next = Utils.nvl(main.parent, null);
|
710
710
|
|
711
|
-
main.dialog =
|
712
|
-
scope.currentDialog =
|
711
|
+
main.dialog = next;
|
712
|
+
scope.currentDialog = next;
|
713
713
|
|
714
|
-
|
714
|
+
if (current?.scope) {
|
715
|
+
const close = current.close;
|
715
716
|
|
716
|
-
|
717
|
-
main.dialog?.crud.scope.update();
|
718
|
-
}
|
719
|
-
scope.update();
|
720
|
-
|
721
|
-
if (parentScope) {
|
722
|
-
const close = old.close;
|
723
|
-
|
724
|
-
parentScope.update();
|
717
|
+
current.scope.update();
|
725
718
|
|
726
719
|
if (close) {
|
727
720
|
if (close?.debug) console.log('Fechando');
|
728
|
-
|
721
|
+
current.scope.call('close', { close });
|
729
722
|
}
|
730
723
|
}
|
724
|
+
|
725
|
+
if (next?.scope) {
|
726
|
+
next.scope.update();
|
727
|
+
}
|
731
728
|
};
|
732
729
|
|
733
730
|
return (
|