fix: no proper loading feedback on forms
This commit is contained in:
parent
cbb14ffba2
commit
d224f5a10a
27 changed files with 192 additions and 57 deletions
8
assets/js/form-submit.js
Normal file
8
assets/js/form-submit.js
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
document.addEventListener('DOMContentLoaded', function() {
|
||||
document.addEventListener('submit', function(e) {
|
||||
var btn = e.target.querySelector('.htmx-submit-btn');
|
||||
if (btn) {
|
||||
e.target.classList.add('htmx-request');
|
||||
}
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue