diff options
author | Pierre Chapuis <git@catwell.info> | 2025-04-05 10:25:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-05 10:25:47 +0200 |
commit | 3830fa7b2c2d24c47473f26816609a25b4b69d92 (patch) | |
tree | 82d019b1fea0a4b4c23a6cc561c0e9c484eb85af | |
parent | 0578564a25303ad1041f3d11fd20505ad0489b41 (diff) | |
download | htmx-3830fa7b2c2d24c47473f26816609a25b4b69d92.tar.gz htmx-3830fa7b2c2d24c47473f26816609a25b4b69d92.zip |
fix customized confirmation example (#3262)
-rw-r--r-- | www/content/examples/confirm.md | 2 |
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() |