react-crud-mobile 1.3.341 → 1.3.342
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 +4 -0
- 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 +4 -0
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/UIElement.tsx +6 -0
package/package.json
CHANGED
@@ -740,6 +740,12 @@ export default function UIElement(props: ElementType) {
|
|
740
740
|
}
|
741
741
|
};
|
742
742
|
|
743
|
+
if (original.hideEmpty && !scope.isType('list', 'select', 'complete')) {
|
744
|
+
let value = scope.getValue();
|
745
|
+
|
746
|
+
if (Utils.isEmpty(value)) return <></>;
|
747
|
+
}
|
748
|
+
|
743
749
|
return (
|
744
750
|
<CrudContext.Provider value={{ crud, theme }}>
|
745
751
|
<Tag ref={ref} style={getStyle()} {...custom}>
|