@idds/js 1.0.60 → 1.0.61
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.iife.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.iife.js
CHANGED
|
@@ -1208,7 +1208,7 @@ var InaUI = (() => {
|
|
|
1208
1208
|
`.${PREFIX}-single-file-upload__description`
|
|
1209
1209
|
);
|
|
1210
1210
|
const initialTitle = titleEl ? titleEl.textContent : "Unggah File";
|
|
1211
|
-
const initialDescription = descriptionEl ? descriptionEl.textContent : "Unggah atau seret dan lepas ke sini";
|
|
1211
|
+
const initialDescription = descriptionEl && descriptionEl.textContent.trim() ? descriptionEl.textContent : "Unggah atau seret dan lepas ke sini";
|
|
1212
1212
|
const maxSize = parseInt(container.getAttribute("data-max-size")) || 0;
|
|
1213
1213
|
const allowedExtensions = (container.getAttribute("data-allowed-extensions") || "").toLowerCase().split(",").map((ext) => ext.trim()).filter(Boolean);
|
|
1214
1214
|
let status = "idle";
|
package/dist/index.js
CHANGED
|
@@ -1211,7 +1211,7 @@ function initSingleFileUpload(rootSelector = `.${PREFIX}-single-file-upload`) {
|
|
|
1211
1211
|
`.${PREFIX}-single-file-upload__description`
|
|
1212
1212
|
);
|
|
1213
1213
|
const initialTitle = titleEl ? titleEl.textContent : "Unggah File";
|
|
1214
|
-
const initialDescription = descriptionEl ? descriptionEl.textContent : "Unggah atau seret dan lepas ke sini";
|
|
1214
|
+
const initialDescription = descriptionEl && descriptionEl.textContent.trim() ? descriptionEl.textContent : "Unggah atau seret dan lepas ke sini";
|
|
1215
1215
|
const maxSize = parseInt(container.getAttribute("data-max-size")) || 0;
|
|
1216
1216
|
const allowedExtensions = (container.getAttribute("data-allowed-extensions") || "").toLowerCase().split(",").map((ext) => ext.trim()).filter(Boolean);
|
|
1217
1217
|
let status = "idle";
|