Fixing a typo in confirm.md (#2988)

`evt` is not the correct variable name here - it should be `e`.
This commit is contained in:
Rob Zimmerman 2024-10-31 05:18:01 -04:00 committed by GitHub
parent 841df9b6e6
commit d39a598e0b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()