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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-crud-mobile",
3
- "version": "1.3.279",
3
+ "version": "1.3.281",
4
4
  "license": "MIT",
5
5
  "description": "Uma biblioteca de componentes para React Native",
6
6
  "main": "dist/index.js",
@@ -711,10 +711,13 @@ export default function UIElement(props: ElementType) {
711
711
  main.dialog = next;
712
712
  scope.currentDialog = next;
713
713
 
714
- if (current) {
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
- if (current.update) current.update();
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 (next?.update) {
726
- next.update();
728
+ if (nextScope) {
729
+ nextScope.update();
727
730
  }
728
731
  };
729
732