diff --git a/assets/js/ujs.js b/assets/js/ujs.js index f869dfcb..952314d3 100644 --- a/assets/js/ujs.js +++ b/assets/js/ujs.js @@ -104,3 +104,7 @@ delegate(document, 'submit', { delegate(document, 'reset', { form: formReset }); + +window.addEventListener('pageshow', () => { + [].forEach.call(document.forms, form => formReset(null, form)); +});