htmx icon indicating copy to clipboard operation
htmx copied to clipboard

Added cleanUpElement to public API

Open viliammihalik opened this issue 3 years ago • 1 comments

https://github.com/bigskysoftware/htmx/issues/425

viliammihalik avatar Jun 16 '22 08:06 viliammihalik

Looking at the referenced issue, maybe this should be on the extension API and the public API should have something higher level like reinit()?

1cg avatar Jun 29 '22 21:06 1cg

As of 1.8.1, htmx.process() now will inspect a node and, if any attributes have changed, it will re-process them.

See https://github.com/bigskysoftware/htmx/commit/1dbb22b682c625c5054de7127da975f30dfbe6ea

So you can simply modify a node and call htmx.process() on it. This should fix issues with morphing, etc. and so I this think PR is obsolete.

1cg avatar Oct 18 '22 15:10 1cg