Merge pull request #4583 from betagouv/fix-autosave-on-file-inputs
Corrige la fonction de sauvegarde automatique qui n'ignorait pas les bons champs
This commit is contained in:
commit
5ad4844977
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ const autosaveController = new AutosaveController();
|
|||
// Whenever a 'change' event is triggered on one of the form inputs, try to autosave.
|
||||
|
||||
const formSelector = 'form#dossier-edit-form.autosave-enabled';
|
||||
const formInputsSelector = `${formSelector} input:not([type=input]), ${formSelector} select, ${formSelector} textarea`;
|
||||
const formInputsSelector = `${formSelector} input:not([type=file]), ${formSelector} select, ${formSelector} textarea`;
|
||||
|
||||
delegate(
|
||||
'change',
|
||||
|
|
Loading…
Reference in a new issue