[UPDT] HORILLA: Prevent duplicate select2 event triggers on HTMX updates

This commit is contained in:
Horilla
2025-07-05 15:39:50 +05:30
parent 5cae06549a
commit f980d5daa3
8 changed files with 21 additions and 49 deletions

View File

@@ -20,11 +20,3 @@
{{form.as_p}}
</form>
</div>
<script>
$(document).ready(function () {
$("select").on("select2:select", function (e) {
$(this).closest("select")[0].dispatchEvent(new Event("change"));
});
});
</script>