impress/app/javascript/application.js

7 lines
175 B
JavaScript
Raw Normal View History

import "@hotwired/turbo-rails";
document.addEventListener("change", (e) => {
if (!e.target.matches("#locale")) return;
document.getElementById("locale-form").submit();
});