react-crud-mobile 1.3.275 → 1.3.276
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 -10
- 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 -10
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/UIElement.tsx +12 -11
package/package.json
CHANGED
@@ -705,29 +705,30 @@ 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 =
|
713
|
-
|
714
|
-
console.log(scope);
|
711
|
+
main.dialog = next;
|
712
|
+
scope.currentDialog = next;
|
715
713
|
|
716
714
|
if (main.dialog?.crud?.scope) {
|
717
715
|
main.dialog?.crud.scope.update();
|
718
716
|
}
|
719
|
-
scope.update();
|
720
717
|
|
721
|
-
if (
|
722
|
-
const close =
|
718
|
+
if (current?.scope) {
|
719
|
+
const close = current.close;
|
723
720
|
|
724
|
-
|
721
|
+
current.scope.update();
|
725
722
|
|
726
723
|
if (close) {
|
727
724
|
if (close?.debug) console.log('Fechando');
|
728
|
-
|
725
|
+
current.scope.call('close', { close });
|
729
726
|
}
|
730
727
|
}
|
728
|
+
|
729
|
+
if (next.scope.update()) {
|
730
|
+
next.scope.update();
|
731
|
+
}
|
731
732
|
};
|
732
733
|
|
733
734
|
return (
|