Skip to content

Commit

Permalink
Merge pull request #32 from CharlesTaylor7/main
Browse files Browse the repository at this point in the history
Fix isInlineSwap on defineExtension
  • Loading branch information
1cg authored Jan 29, 2024
2 parents 9dc80f0 + 83649d3 commit b5115ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/idiomorph-htmx.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
htmx.defineExtension('morph', {
isInlineSwap: function(swapStyle) {
let config = createMorphConfig(swapStyle);
return config.swapStyle === "outerHTML" || config.swapStyle == null;
return config?.morphStyle === "outerHTML" || config?.morphStyle == null;
},
handleSwap: function (swapStyle, target, fragment) {
let config = createMorphConfig(swapStyle);
Expand Down

0 comments on commit b5115ad

Please sign in to comment.