Skip to content

Commit

Permalink
Fix defineExtension
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlesTaylor7 committed Jan 19, 2024
1 parent 193866b commit 83649d3
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 83649d3

Please sign in to comment.