fix(autosave): on check condition requests do not send file inputs
This commit is contained in:
parent
fdbcdfd043
commit
cf315b7246
1 changed files with 7 additions and 0 deletions
|
@ -70,7 +70,14 @@ export class CheckConditionsController extends ApplicationController {
|
|||
return Promise.resolve();
|
||||
}
|
||||
|
||||
const fileInputs = form.querySelectorAll('input[type="file"]');
|
||||
for (const input of fileInputs) {
|
||||
input.setAttribute('disabled', 'disabled');
|
||||
}
|
||||
const formData = new FormData(form);
|
||||
for (const input of fileInputs) {
|
||||
input.removeAttribute('disabled');
|
||||
}
|
||||
formData.set('check_conditions', 'true');
|
||||
|
||||
return httpRequest(form.action, {
|
||||
|
|
Loading…
Reference in a new issue