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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-crud-mobile",
3
- "version": "1.3.275",
3
+ "version": "1.3.276",
4
4
  "license": "MIT",
5
5
  "description": "Uma biblioteca de componentes para React Native",
6
6
  "main": "dist/index.js",
@@ -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 old = scope.currentDialog;
709
- let parentScope = old.scope.parent as Scope;
708
+ let current = main.dialog;
709
+ let next = Utils.nvl(main.parent, null);
710
710
 
711
- main.dialog = Utils.nvl(old.parent, null);
712
- scope.currentDialog = null;
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 (parentScope) {
722
- const close = old.close;
718
+ if (current?.scope) {
719
+ const close = current.close;
723
720
 
724
- parentScope.update();
721
+ current.scope.update();
725
722
 
726
723
  if (close) {
727
724
  if (close?.debug) console.log('Fechando');
728
- parentScope.call('close', { close });
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 (