Skip to content

Support for htmx4 modals - #165

Open
curtis-allan wants to merge 1 commit into
mainfrom
htmx4_support
Open

Support for htmx4 modals#165
curtis-allan wants to merge 1 commit into
mainfrom
htmx4_support

Conversation

@curtis-allan

Copy link
Copy Markdown
Contributor

This PR modifies htmx-controlled modals to not rely on a specific htmx version.

Modals currently use hard-coded htmx2 event attributes to control opening/ closing them via HTMX swaps. I've replaced these with a script that fires when the component is loaded into a page instead, which results in the same behaviour without relying on the hx_on__load attribute to trigger.

@curtis-allan curtis-allan self-assigned this Aug 7, 2026
@curtis-allan curtis-allan added the enhancement New feature or request label Aug 7, 2026
@curtis-allan
curtis-allan requested a review from jph00 August 7, 2026 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant