From c433255f810919ec1c0bcb39e295e5aeff6c0957 Mon Sep 17 00:00:00 2001 From: Patrick Canfield <578371+patreeceeo@users.noreply.github.com> Date: Sun, 28 Jul 2024 11:03:36 -0700 Subject: [PATCH] Provide correct context to issueAjaxRequest I believe this fixes #2147 --- src/htmx.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/htmx.js b/src/htmx.js index 4fda7e55f..ede137a0a 100644 --- a/src/htmx.js +++ b/src/htmx.js @@ -3844,7 +3844,7 @@ var htmx = (function() { verb = (/** @type HttpVerb */(verb.toLowerCase())) if (context) { if (context instanceof Element || typeof context === 'string') { - return issueAjaxRequest(verb, path, null, null, { + return issueAjaxRequest(verb, path, resolveTarget(context), null, { targetOverride: resolveTarget(context), returnPromise: true })