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