Skip to content

Commit 82db5bc

Browse files
Frederik LarsenFrederik Larsen
authored andcommitted
Include swapOptions.contextElement parameter with the api.swap call
1 parent fd25e24 commit 82db5bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sse/sse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ This extension adds support for Server Sent Events to htmx. See /www/extensions
280280

281281
var swapSpec = api.getSwapSpecification(elt)
282282
var target = api.getTarget(elt)
283-
api.swap(target, content, swapSpec)
283+
api.swap(target, content, swapSpec, { contextElement: elt })
284284
}
285285

286286

0 commit comments

Comments
 (0)