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:
LeSim 2019-11-27 15:03:35 +01:00 committed by GitHub
commit 5ad4844977
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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',