ods-component-lib 1.18.176 → 1.18.179
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/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +3 -2
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1858,7 +1858,7 @@ function OdsFileUpload(props) {
|
|
|
1858
1858
|
cancelText: RemoveCancelText ? RemoveCancelText : "Cancel",
|
|
1859
1859
|
onOk: function onOk() {
|
|
1860
1860
|
if (!multipleDoc) {
|
|
1861
|
-
setFileList(
|
|
1861
|
+
setFileList([]);
|
|
1862
1862
|
sendDataToParent({
|
|
1863
1863
|
base64: null,
|
|
1864
1864
|
fileName: null,
|
|
@@ -1871,12 +1871,13 @@ function OdsFileUpload(props) {
|
|
|
1871
1871
|
return item.uid !== file.uid;
|
|
1872
1872
|
});
|
|
1873
1873
|
setFileList(updatedFileList);
|
|
1874
|
-
removeFile(updatedFileList.map(function (file) {
|
|
1874
|
+
removeFile && removeFile(updatedFileList.map(function (file) {
|
|
1875
1875
|
return file.uid;
|
|
1876
1876
|
}));
|
|
1877
1877
|
},
|
|
1878
1878
|
onCancel: function onCancel() {}
|
|
1879
1879
|
});
|
|
1880
|
+
return false;
|
|
1880
1881
|
},
|
|
1881
1882
|
onDownload: function onDownload(file) {
|
|
1882
1883
|
downloadFile(file.url, file.thumbUrl, file.name);
|