bigskysoftware / htmx

</> htmx - high power tools for HTML
https://htmx.org
Other
38.57k stars 1.31k forks source link

htmx-swapping and htmx-settling classes not added to OOB targets #703

Open wnortje opened 2 years ago

wnortje commented 2 years ago

This may be related to #664.

I have a response that includes OOB elements. When the updates are made the target gets the htmx-swapping and htmx-settling classes applied as expected but the OOB elements do not get them. All elements are properly updated with their new content.

benpate commented 2 years ago

This is loosely related to the work on WebSockets, which uses OOB syntax when pushing freshly received messages into the DOM. Though it currently duplicates some of this logic, it would be awesome to expose this aspect of swapping so that (once changes are done here) WebSockets could inherit these updates, too.

devinMcArthur commented 2 weeks ago

This seems to still be an issue. An @benpate mentioned I am facing this in the context of a websocket OOB swap, would be great if swapped elements were able to receive these classes in order to easily do some transition animations.