I'm trying to use the approach suggested in bigskysoftware/htmx#1698 (comment) to reset a form after successful submission.
I'm having trouble with attributes["hx-on::after-request"]: only one colon appears in the rendered HTML.
I'm using .replace("hx-on:after-request", "hx-on::after-request") as a workaround. Can you suggest a better solution?
I'm trying to use the approach suggested in bigskysoftware/htmx#1698 (comment) to reset a form after successful submission.
I'm having trouble with
attributes["hx-on::after-request"]: only one colon appears in the rendered HTML.I'm using
.replace("hx-on:after-request", "hx-on::after-request")as a workaround. Can you suggest a better solution?