Closed imacrayon closed 1 year ago
Links added to the DOM after an Ajax component is initialized are not progressively enhanced.
The work around for now is to add thex-ajax directive to new links. The directive will trigger an Alpine component to re-initialize.
x-ajax
I think the fix for this is to use morph’s added(el) hook. When a link element is patched into the DOM progressively enhance it if it belongs to an AJAX component.
morph
added(el)
Links added to the DOM after an Ajax component is initialized are not progressively enhanced.
The work around for now is to add the
x-ajax
directive to new links. The directive will trigger an Alpine component to re-initialize.