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