react-crud-mobile 1.3.276 → 1.3.278
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 +7 -9
- 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 +7 -9
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/UIElement.tsx +6 -7
package/package.json
CHANGED
@@ -711,14 +711,13 @@ export default function UIElement(props: ElementType) {
|
|
711
711
|
main.dialog = next;
|
712
712
|
scope.currentDialog = next;
|
713
713
|
|
714
|
-
|
715
|
-
|
716
|
-
}
|
714
|
+
let nextScope = next?.scope?.parent;
|
715
|
+
let currScope = current?.scope?.parent;
|
717
716
|
|
718
|
-
if (
|
717
|
+
if (currScope) {
|
719
718
|
const close = current.close;
|
720
719
|
|
721
|
-
|
720
|
+
currScope.update();
|
722
721
|
|
723
722
|
if (close) {
|
724
723
|
if (close?.debug) console.log('Fechando');
|
@@ -726,8 +725,8 @@ export default function UIElement(props: ElementType) {
|
|
726
725
|
}
|
727
726
|
}
|
728
727
|
|
729
|
-
if (
|
730
|
-
|
728
|
+
if (nextScope) {
|
729
|
+
nextScope.update();
|
731
730
|
}
|
732
731
|
};
|
733
732
|
|