Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support full extended swap styles in htmx oob swaps #97

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

MichaelWest22
Copy link
Collaborator

@MichaelWest22 MichaelWest22 commented Jan 31, 2025

Currently oob swaps in htmx are not supported with idiomorph if you want to do a inner style morph as they include a : which is a seperator in hx-swap-oob. So to support this i've allowed : to be replaced with ;; in the swap style so it can also be used for supporting extended config inside the swap style as well.

For example here is a now supported extended swap with hx-swap-oob:

<div hx-swap-oob="morph;;{morphStyle;;'innerHTML'}:#div">

@MichaelWest22 MichaelWest22 changed the title add innerMorph htmx swap style for use with inner style oob swaps support full extended swap styles in htmx oob swaps Jan 31, 2025
@MichaelWest22
Copy link
Collaborator Author

should resolve #40 hopefully

@botandrose
Copy link
Collaborator

Hmm... this looks to me like something that should be fixed in htmx, rather than worked-around in Idiomorph.

@1cg what do you think about resolving it via bigskysoftware/htmx#2308 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants