From d39a598e0b5202bab008dea82eb9319f5b8cff15 Mon Sep 17 00:00:00 2001 From: Rob Zimmerman Date: Thu, 31 Oct 2024 05:18:01 -0400 Subject: [PATCH] Fixing a typo in confirm.md (#2988) `evt` is not the correct variable name here - it should be `e`. --- www/content/examples/confirm.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/content/examples/confirm.md b/www/content/examples/confirm.md index 3de12daa5..bb48d3f4f 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 (!evt.detail.target.hasAttribute('hx-confirm')) return + if (!e.detail.target.hasAttribute('hx-confirm')) return // This will prevent the request from being issued to later manually issue it e.preventDefault()