diff --git a/src/htmx.js b/src/htmx.js index 024baa612..ce6f83bfa 100644 --- a/src/htmx.js +++ b/src/htmx.js @@ -1177,7 +1177,7 @@ var htmx = (() => { this.__processScripts(templateElt.content); let swapSpec = this.__parseSwapSpec(this.__attr(templateElt, 'hx-swap') || this.config.defaultSwap); let targets = this.__findAllExt(ctx.sourceElement, targetSelector); -                        for (let target of targets.length ? targets : [null]) { + for (let target of targets.length ? targets : [null]) { tasks.push({ type: 'partial', fragment: templateElt.content.cloneNode(true),