We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b12940 commit 8843640Copy full SHA for 8843640
src/files-ui/components/dropzone/components/DropzoneChildren/DropzoneChildren.tsx
@@ -16,11 +16,14 @@ const DropzoneChildren: React.FC<DropzoneChildrenProps> = (
16
props: DropzoneChildrenProps
17
) => {
18
const { children, label, localization } = props;
19
+
20
+ const isEmptyArray = Array.isArray(children) && children.length===0;
21
+ //console.log("isEmptyArray", isEmptyArray,children);
22
const DropzoneLocalizer: LocalLabels =
23
DropzoneLocalizerSelector(localization);
24
25
//children will be always consider as more important
- if (children) {
26
+ if (children && !isEmptyArray) {
27
return (
28
<div className="files-ui-dropzone-children-container">{children}</div>
29
);
0 commit comments