react-crud-mobile 1.3.245 → 1.3.247
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 +13 -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 +13 -12
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/UIElement.tsx +3 -1
- package/src/elements/core/UIModal.tsx +0 -2
package/package.json
CHANGED
@@ -57,7 +57,7 @@ export default function UIElement(props: ElementType) {
|
|
57
57
|
const theme = Utils.nvl(props.theme, ctx?.theme);
|
58
58
|
|
59
59
|
let crud: Crud = Utils.nvl(props.crud, ctx?.crud);
|
60
|
-
let scope = ScopeUtils.create({ crud, ...props, theme });
|
60
|
+
let [scope] = useState<Scope>(ScopeUtils.create({ crud, ...props, theme }));
|
61
61
|
let [index, setIndex] = useState(0);
|
62
62
|
let [error, setError]: string | any = useState(null);
|
63
63
|
|
@@ -721,6 +721,8 @@ export default function UIElement(props: ElementType) {
|
|
721
721
|
main.dialog = Utils.nvl(old.parent, null);
|
722
722
|
scope.currentDialog = null;
|
723
723
|
|
724
|
+
console.log(scope);
|
725
|
+
|
724
726
|
if (main.dialog?.crud?.scope) {
|
725
727
|
main.dialog?.crud.scope.update();
|
726
728
|
}
|