Skip to content

attributes["hx-on::after-request"] does not preserve double colon #267

@davidchambers

Description

@davidchambers

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions