react-crud-mobile 1.3.281 → 1.3.283
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 +2 -3
- 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 +3 -4
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/UIElement.tsx +1 -1
- package/src/elements/core/UIModal.tsx +2 -3
package/package.json
CHANGED
@@ -706,7 +706,7 @@ export default function UIElement(props: ElementType) {
|
|
706
706
|
scope.dialogHide = (args?: MethodType) => {
|
707
707
|
let main = ViewUtils.getCrud('view');
|
708
708
|
let current = main.dialog;
|
709
|
-
let next = Utils.nvl(
|
709
|
+
let next = Utils.nvl(current.parent, null);
|
710
710
|
|
711
711
|
main.dialog = next;
|
712
712
|
scope.currentDialog = next;
|
@@ -27,14 +27,14 @@ interface UIModalType extends ChildType {
|
|
27
27
|
}
|
28
28
|
|
29
29
|
export default function UIModal(props: UIModalType) {
|
30
|
+
const scrollRef = useRef(null);
|
31
|
+
|
30
32
|
let owner = props.scope;
|
31
33
|
let [index, setIndex] = useState(0);
|
32
34
|
let dialog = owner.currentDialog;
|
33
|
-
|
34
35
|
//v2
|
35
36
|
|
36
37
|
let curr = dialog?.crud;
|
37
|
-
let main = ViewUtils.getCrud('view');
|
38
38
|
|
39
39
|
if (!dialog) {
|
40
40
|
return <></>;
|
@@ -51,7 +51,6 @@ export default function UIModal(props: UIModalType) {
|
|
51
51
|
const label = scope.getLabel();
|
52
52
|
const theme = scope.getTheme();
|
53
53
|
const headerStyle = Utils.nvl(theme.styles?.defaults?.header, {});
|
54
|
-
const scrollRef = useRef(null);
|
55
54
|
const headerRight = ComponentUtils.getDefine(props, 'header', 'right');
|
56
55
|
const bottom = ComponentUtils.getDefine(props, 'bottom');
|
57
56
|
|