Fix demo form eventlisteners
we use turbolinks and thus we need to init on turbolinks:load
This commit is contained in:
parent
387c06fa3a
commit
8138d09c7b
@ -1,4 +1,5 @@
|
||||
document.addEventListener("turbolinks:load", function () {
|
||||
tinyforms.init(); // init the tinyforms event listeners
|
||||
var demoForm = document.getElementById('demo-form');
|
||||
if (!demoForm) {
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user