From b9fd844633c253cfecd54c640da34c30eef68f4d Mon Sep 17 00:00:00 2001 From: Pierre de La Morinerie Date: Wed, 27 Nov 2019 13:53:31 +0100 Subject: [PATCH] dossiers: fix autosave not ignoring file inputs The dossier autosave is supposed to ignore file inputs (which are handled differently by ActiveStorage). Fix a typo in the CSS selector. --- app/javascript/new_design/autosave.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/new_design/autosave.js b/app/javascript/new_design/autosave.js index 75e8db7d6..9e03fa632 100644 --- a/app/javascript/new_design/autosave.js +++ b/app/javascript/new_design/autosave.js @@ -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',