fix: reset forms after they're AJAXed
This commit is contained in:
parent
070ffa8eeb
commit
6de594777a
1 changed files with 3 additions and 0 deletions
|
@ -52,5 +52,8 @@ function checkPwd() {
|
||||||
checkPwd();
|
checkPwd();
|
||||||
|
|
||||||
document.addEventListener("htmx:afterRequest", evt => {
|
document.addEventListener("htmx:afterRequest", evt => {
|
||||||
|
if (evt.target.tagName === "FORM") {
|
||||||
|
evt.target.reset();
|
||||||
|
}
|
||||||
checkPwd();
|
checkPwd();
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Reference in a new issue