Skip to content

Is hx:on supported? #125

@jeffreyhwang

Description

@jeffreyhwang

Looking at the https://github.com/wimdeblauwe/htmx-spring-boot/blob/69fb0e1604a4fc97d97681df9a37f69b3054e1c5/htmx-spring-boot-thymeleaf/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/thymeleaf/HtmxDialect.java#L27-55, it doesn't look like hx:on is supported.

When I try to use it in thymeleaf, it looks like hx:on is being rendered as hx:on, not hx-on.

Alternative that works is using th:hx-on::before-request, but I was wondering if there is a way to use hx:on to keep things consistent.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions