Reset the tinyform state otherwise the event listener is not added
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
document.addEventListener("turbolinks:load", function () {
|
document.addEventListener("turbolinks:load", function () {
|
||||||
|
tinyforms.loaded = false;
|
||||||
tinyforms.init(); // init the tinyforms event listeners
|
tinyforms.init(); // init the tinyforms event listeners
|
||||||
var demoForm = document.getElementById('demo-form');
|
var demoForm = document.getElementById('demo-form');
|
||||||
if (!demoForm) {
|
if (!demoForm) {
|
||||||
|
|||||||
Reference in New Issue
Block a user