Fix form not syncing due to HTMX
All checks were successful
Django CI/CD / build-and-push (push) Successful in 2m38s
All checks were successful
Django CI/CD / build-and-push (push) Successful in 2m38s
This commit is contained in:
@ -25,6 +25,7 @@ function setupElementHandlers() {
|
||||
}
|
||||
|
||||
document.addEventListener("DOMContentLoaded", setupElementHandlers);
|
||||
document.addEventListener("htmx:afterSwap", setupElementHandlers);
|
||||
getEl("#id_type").onchange = () => {
|
||||
setupElementHandlers();
|
||||
};
|
||||
|
Reference in New Issue
Block a user