react-crud-mobile 1.3.259 → 1.3.260
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/elements/core/UIModal.d.ts +1 -1
- package/dist/react-crud-mobile.cjs.development.js +11 -12
- 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 +11 -12
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/core/UIModal.tsx +5 -3
package/package.json
CHANGED
@@ -26,9 +26,11 @@ interface UIModalType extends ChildType {
|
|
26
26
|
dialog?: any;
|
27
27
|
}
|
28
28
|
|
29
|
-
export default function UIModal(
|
29
|
+
export default function UIModal(props: UIModalType) {
|
30
|
+
let owner = props.scope;
|
30
31
|
let [index, setIndex] = useState(0);
|
31
|
-
let dialog =
|
32
|
+
let dialog = owner.currentDialog;
|
33
|
+
let scope = dialog.scope;
|
32
34
|
let [modalVisible, setModalVisible] = useState(!Utils.isEmpty(dialog));
|
33
35
|
|
34
36
|
//v1
|
@@ -71,7 +73,7 @@ export default function UIModal({ scope, ...props }: UIModalType) {
|
|
71
73
|
|
72
74
|
scope.put('scrollRef', scrollRef);
|
73
75
|
|
74
|
-
const original =
|
76
|
+
const original = owner.original;
|
75
77
|
|
76
78
|
ComponentUtils.setViewScope(scope);
|
77
79
|
|