summaryrefslogtreecommitdiffstatshomepage
path: root/www/content/examples/confirm.md
diff options
context:
space:
mode:
Diffstat (limited to 'www/content/examples/confirm.md')
-rw-r--r--www/content/examples/confirm.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/www/content/examples/confirm.md b/www/content/examples/confirm.md
index bb48d3f4..42f70031 100644
--- a/www/content/examples/confirm.md
+++ b/www/content/examples/confirm.md
@@ -39,7 +39,7 @@ which is then picked up by `hx-trigger`.
// The event is triggered on every trigger for a request, so we need to check if the element
// that triggered the request has a hx-confirm attribute, if not we can return early and let
// the default behavior happen
- if (!e.detail.target.hasAttribute('hx-confirm')) return
+ if (!e.detail.elt.hasAttribute('hx-confirm')) return
// This will prevent the request from being issued to later manually issue it
e.preventDefault()