Spec-Zone.ru › htmx

htmx:after:cleanup

Fires after element data removal

The htmx:after:cleanup event fires after htmx has removed all listeners and internal data from an element.

When It Fires

  • After an element has been removed from the DOM
  • After htmx has detached all event listeners

Event Detail

Empty - no additional context provided.

Example

htmx.on('htmx:after:cleanup', (evt) => {
  console.log('Cleanup complete:', evt.target);
});

The element no longer has htmx behaviors attached at this point.

Licensed under the Zero-Clause BSD License.
https://four.htmx.org/reference/events/htmx-after-cleanup/

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API