From 63714b6c15916ec75e0487a7ffc9996316cc8a80 Mon Sep 17 00:00:00 2001 From: Michael Bumann Date: Mon, 4 May 2020 10:31:58 +0200 Subject: [PATCH] Reset the tinyform state otherwise the event listener is not added --- app/javascript/demo.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/javascript/demo.js b/app/javascript/demo.js index 752ee9b..722ba62 100644 --- a/app/javascript/demo.js +++ b/app/javascript/demo.js @@ -1,4 +1,5 @@ document.addEventListener("turbolinks:load", function () { + tinyforms.loaded = false; tinyforms.init(); // init the tinyforms event listeners var demoForm = document.getElementById('demo-form'); if (!demoForm) {