mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-10-02 15:25:26 +00:00
include the current element as the target
This commit is contained in:
parent
872e6ad2d6
commit
6c103b150e
@ -1119,7 +1119,7 @@ return (function () {
|
|||||||
var nodeData = getInternalData(elt);
|
var nodeData = getInternalData(elt);
|
||||||
nodeData.timeout = setTimeout(function () {
|
nodeData.timeout = setTimeout(function () {
|
||||||
if (bodyContains(elt) && nodeData.cancelled !== true) {
|
if (bodyContains(elt) && nodeData.cancelled !== true) {
|
||||||
if (!maybeFilterEvent(spec, makeEvent('hx:poll:trigger', {triggerSpec:spec}))) {
|
if (!maybeFilterEvent(spec, makeEvent('hx:poll:trigger', {triggerSpec:spec, target:elt}))) {
|
||||||
issueAjaxRequest(verb, path, elt);
|
issueAjaxRequest(verb, path, elt);
|
||||||
}
|
}
|
||||||
processPolling(elt, verb, getAttributeValue(elt, "hx-" + verb), spec);
|
processPolling(elt, verb, getAttributeValue(elt, "hx-" + verb), spec);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user