ar-design 0.3.44 → 0.3.45

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.
@@ -8,7 +8,6 @@ import List from "./List";
8
8
  import Utils from "../../../libs/infrastructure/shared/Utils";
9
9
  const Upload = ({ text, files, onChange, allowedTypes, maxSize, type = "list", size, fullWidth, multiple, }) => {
10
10
  // refs
11
- const _firstLoad = useRef(false);
12
11
  const _input = useRef(null);
13
12
  const _arUplaod = useRef(null);
14
13
  // refs -> File Data
@@ -134,12 +133,9 @@ const Upload = ({ text, files, onChange, allowedTypes, maxSize, type = "list", s
134
133
  })();
135
134
  }, [selectedFiles]);
136
135
  useEffect(() => {
137
- if (!_firstLoad.current && files.length === 0)
138
- return;
139
136
  if (Utils.DeepEqual(files, selectedFiles))
140
137
  return;
141
138
  setSelectedFiles(files);
142
- _firstLoad.current = true;
143
139
  }, [files]);
144
140
  useEffect(() => {
145
141
  if (type === "dropzone")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ar-design",
3
- "version": "0.3.44",
3
+ "version": "0.3.45",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",