mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-09-27 13:01:03 +00:00
Fixing a typo in confirm.md (#2988)
`evt` is not the correct variable name here - it should be `e`.
This commit is contained in:
parent
841df9b6e6
commit
d39a598e0b
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user