Skip to content

HTMX and Alpine :class on input with id #4440

Answered by ekwoka
globglarb asked this question in 1. Help
Discussion options

You must be logged in to vote

That would be what a quick look at the docs would suggest.

but actually, it uses id to preserve elements attributes, which is made more clear in

https://htmx.org/docs/#css_transitions

So it will copy the old elements attributes onto the new one, then change them after a moment, which can then cause issues.

Replies: 5 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@SimoTod
Comment options

SimoTod Nov 23, 2024
Collaborator

@globglarb
Comment options

Comment options

You must be logged in to vote
1 reply
@globglarb
Comment options

Comment options

You must be logged in to vote
3 replies
@globglarb
Comment options

@ekwoka
Comment options

Answer selected by globglarb
@globglarb
Comment options

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