1
0
Fork 0
mirror of https://codeberg.org/icewind/shelve.git synced 2026-06-03 12:04:09 +02:00
This commit is contained in:
Robin Appelman 2025-10-29 22:10:26 +01:00
commit d2a6f5805c

View file

@ -306,9 +306,10 @@
label.textContent = files.length > 1 ? (input.getAttribute('data-multiple-caption') || '').replace('{count}', files.length) : files[0].name;
},
triggerFormSubmit = function () {
let event = new SubmitEvent('submit');
event.bubbles = true;
event.cancelable = true;
let event = new SubmitEvent('submit', {
bubbles: true,
cancelable: true,
});
form.dispatchEvent(event);
};